* Fix a compile error (needed to use OR '|', not a comma ',')
* Fix a warning due to the strange WinAPI (needs a char* but uses it as a char**) git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3402 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
0245c21866
commit
e811ab6c89
|
@ -227,7 +227,7 @@ static bool getCurrentDir(char * const dest, size_t const size)
|
|||
char* err_string;
|
||||
|
||||
// Retrieve a string describing the error number (uses LocalAlloc() to allocate memory for err_string)
|
||||
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER, FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, &err_string, 0, NULL);
|
||||
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, (char*)&err_string, 0, NULL);
|
||||
|
||||
// Print an error message with the above description
|
||||
debug(LOG_ERROR, "getPlatformUserDir: GetCurrentDirectoryA failed (error code: %d): %s", err, err_string);
|
||||
|
|
Loading…
Reference in New Issue