Fix error in Win32 code