moved errno.h to top of platform includes

fixed bug where FormatMessage() did not ignore inserts

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401820
This commit is contained in:
David Anderson
2007-12-22 19:35:54 +00:00
parent a079a87f68
commit c3456b8804
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ void LibrarySystem::GetPlatformError(char *error, size_t maxlength)
#if defined PLATFORM_WINDOWS
DWORD dw = GetLastError();
FormatMessageA(
FORMAT_MESSAGE_FROM_SYSTEM,
FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dw,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),