ULONGLONG value corrupted in WinPE

I have an MFC application running in WinPE (Windows Preinstallation Environment) and I am trying to make a method call with 64bit value in ULONGLONG as a parameter. I determined that the value is correct before the call (i.e. 0x1b432d6000), but it is corrupted (i.e. 0x432d60000000000a) inside the call. Initially the value is assigned on the stack just before the call, and I tried to pass it by value, reference and pointer.

The call works correctly in the debugger on my development machine.

What could be causing this?

0


source to share


1 answer


Check Function Signatures - Sounds like you are calling this function using the wrong calling convention.



+1


source







All Articles