aboutsummaryrefslogtreecommitdiff
path: root/src/engine/logging.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-10-17 19:12:21 -0500
committerSean Hall <r.sean.hall@gmail.com>2020-10-24 20:07:21 -0500
commit273c69f34311f4f4e5f6b5896e71d0788f12d96a (patch)
tree4cf8f42f3ecfa9341a41686b74aa5e48068ede87 /src/engine/logging.cpp
parent3f8e35223216ebbe7f6683a5031a5a97bbc66d5a (diff)
downloadwix-273c69f34311f4f4e5f6b5896e71d0788f12d96a.tar.gz
wix-273c69f34311f4f4e5f6b5896e71d0788f12d96a.tar.bz2
wix-273c69f34311f4f4e5f6b5896e71d0788f12d96a.zip
WIXFEAT:6210 Change data type of versions to strings.
Diffstat (limited to 'src/engine/logging.cpp')
-rw-r--r--src/engine/logging.cpp17
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.
587extern "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