fixup bug in WINAPI not set