More FormatMessage compile errors, try again to fix

meow-7.2.2
Nat Goodspeed 2011-07-19 10:40:02 -04:00
parent 5379467ccb
commit 25ababd7a6
1 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ private:
if (0 == GetTempFileNameA(mPath.c_str(), ext.c_str() + pfx_offset, 0, tempname))
{
// I always have to look up this call... :-P
LPVOID msgptr;
LPSTR msgptr;
FormatMessageA(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
@ -282,7 +282,7 @@ private:
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
LPTSTR(&msgptr),
LPSTR(&msgptr), // have to cast (char**) to (char*)
0, NULL );
LL_ERRS("NamedTempFile") << "GetTempFileName(\"" << mPath << "\", \""
<< (ext.c_str() + pfx_offset) << "\") failed: "