Missing WINAPI decoration on function loaded from DLL. When called, this would corrupt the parameters to callers, presumably because the register allocater didn't know the call would tromp on something.