tags:

views:

84

answers:

1

I have an MFC app running in WinPE (Windows Preinstallation Environment), and I'm trying to make a method call with a 64-bit value in a ULONGLONG as a parameter. I've determined that the value is correct (ie. 0x1b432d6000) before the call, but is corrupt (ie. 0x432d60000000000a) inside the call. The value is initially allocated on the stack immediately before the call, and I've tried passing it by value, reference, and pointer.

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

What could be causing this?

+1  A: 

Check function signatures - sounds like you might be calling the function using an incorrect calling convention.

Shog9