MCPcopy Create free account
hub / github.com/ZDoom/Raze / PrintLastError

Function PrintLastError

source/common/filesystem/source/filesystem.cpp:1459–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1457}
1458
1459static void PrintLastError (FileSystemMessageFunc Printf)
1460{
1461 char *lpMsgBuf;
1462 FormatMessageA(0x1300 /*FORMAT_MESSAGE_ALLOCATE_BUFFER |
1463 FORMAT_MESSAGE_FROM_SYSTEM |
1464 FORMAT_MESSAGE_IGNORE_INSERTS*/,
1465 NULL,
1466 GetLastError(),
1467 1 << 10 /*MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)*/, // Default language
1468 &lpMsgBuf,
1469 0,
1470 NULL
1471 );
1472 Printf (FSMessageLevel::Error, " %s\n", lpMsgBuf);
1473 // Free the buffer.
1474 LocalFree( lpMsgBuf );
1475}
1476#else
1477static void PrintLastError (FileSystemMessageFunc Printf)
1478{

Callers 1

AddFileMethod · 0.85

Calls 1

PrintfFunction · 0.85

Tested by

no test coverage detected