https://bugs.winehq.org/show_bug.cgi?id=41377
--- Comment #4 from Vijay Kamuju infyquest@gmail.com --- I have tested the function on windows vista 64 bit(english - user language) usging cygwin+mingw-w64 If you pass 1, it returns 1, error code = 0 If you pass 0, it returns 1033 , error code = 0 If you pass NULL, it returns 1033 , error code = 0 If you pass -1, it returns 1033 , error code = 0x2