In os_windows.cpp:
In a few places results returned by GetLastError() are stored to errno. However, errno has no relation to GetLastError(), and their ranges are not the same.
Results of GetLastError should be stored into variables of type DWORD.
In a few places results returned by GetLastError() are stored to errno. However, errno has no relation to GetLastError(), and their ranges are not the same.
Results of GetLastError should be stored into variables of type DWORD.