diff options
Diffstat (limited to 'src/engine/logging.cpp')
| -rw-r--r-- | src/engine/logging.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/engine/logging.cpp b/src/engine/logging.cpp index 55b65336..a6412da9 100644 --- a/src/engine/logging.cpp +++ b/src/engine/logging.cpp | |||
| @@ -583,23 +583,6 @@ extern "C" LPWSTR LoggingStringOrUnknownIfNull( | |||
| 583 | return wz ? wz : L"Unknown"; | 583 | return wz ? wz : L"Unknown"; |
| 584 | } | 584 | } |
| 585 | 585 | ||
| 586 | // Note: this function is not thread safe. | ||
| 587 | extern "C" LPCSTR LoggingVersionToString( | ||
| 588 | __in DWORD64 dw64Version | ||
| 589 | ) | ||
| 590 | { | ||
| 591 | static CHAR szVersion[40] = { 0 }; | ||
| 592 | HRESULT hr = S_OK; | ||
| 593 | |||
| 594 | hr = ::StringCchPrintfA(szVersion, countof(szVersion), "%I64u.%I64u.%I64u.%I64u", dw64Version >> 48 & 0xFFFF, dw64Version >> 32 & 0xFFFF, dw64Version >> 16 & 0xFFFF, dw64Version & 0xFFFF); | ||
| 595 | if (FAILED(hr)) | ||
| 596 | { | ||
| 597 | memset(szVersion, 0, sizeof(szVersion)); | ||
| 598 | } | ||
| 599 | |||
| 600 | return szVersion; | ||
| 601 | } | ||
| 602 | |||
| 603 | 586 | ||
| 604 | // internal function declarations | 587 | // internal function declarations |
| 605 | 588 | ||
