Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Issue with inline assembler DLL function call
Issue with inline assembler DLL function call [message #475543] Tue, 02 October 2012 11:27 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
Inside a plugin I call Console_Input via inline assembler, the generated call is:

call    near ptr __imp_?Console_Input@@YAXPBD@Z ; Console_Input(char const *)


However, when I call that function using the normal (non-assembler) syntax, the following call is generated:

call    ds:__imp_?Console_Input@@YAXPBD@Z ; Console_Input(char const *)


If I wrap Console_Input() inside another function in my plugin and call that wrapper instead, it works correctly, I'm using the following assembler code to call Console_Input():

call Console_Input


Any suggestions? The call that's generated for the assembler code causes the fds to crash.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: destroy all vehicles
Next Topic: Dazzle
Goto Forum:
  


Current Time: Thu Dec 12 03:36:06 MST 2024

Total time taken to generate the page: 0.00752 seconds