"Kai Blin" kai.blin@gmail.com wrote:
phNewContext->dwUpper = ctxt_attr;
phNewContext->dwLower = ret;
phNewContext->dwLower = (DWORD)helper;
You need to cast to ULONG_PTR to make the code 64-bit safe. Also please fix (DWORD)helper casts in other places.