* 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-861f7616d084
master
Giel van Schijndel 2008-01-06 23:46:44 +00:00
parent 0245c21866
commit e811ab6c89
1 changed files with 1 additions and 1 deletions

View File

@ -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);