Skip to content
Snippets Groups Projects
Commit 25ababd7 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

More FormatMessage compile errors, try again to fix

parent 5379467c
No related branches found
No related tags found
No related merge requests found
...@@ -274,7 +274,7 @@ class NamedTempFile ...@@ -274,7 +274,7 @@ class NamedTempFile
if (0 == GetTempFileNameA(mPath.c_str(), ext.c_str() + pfx_offset, 0, tempname)) if (0 == GetTempFileNameA(mPath.c_str(), ext.c_str() + pfx_offset, 0, tempname))
{ {
// I always have to look up this call... :-P // I always have to look up this call... :-P
LPVOID msgptr; LPSTR msgptr;
FormatMessageA( FormatMessageA(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_SYSTEM |
...@@ -282,7 +282,7 @@ class NamedTempFile ...@@ -282,7 +282,7 @@ class NamedTempFile
NULL, NULL,
GetLastError(), GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
LPTSTR(&msgptr), LPSTR(&msgptr), // have to cast (char**) to (char*)
0, NULL ); 0, NULL );
LL_ERRS("NamedTempFile") << "GetTempFileName(\"" << mPath << "\", \"" LL_ERRS("NamedTempFile") << "GetTempFileName(\"" << mPath << "\", \""
<< (ext.c_str() + pfx_offset) << "\") failed: " << (ext.c_str() + pfx_offset) << "\") failed: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment