Skip to content

Commit

Permalink
Fix format string for printing OS info in debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Feb 22, 2018
1 parent 3c78f31 commit 925d91e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packetWin7/Dll/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static __forceinline void TRACE_PRINT_OS_INFO()
{
if (RegQueryValueEx(hKey, _T("PROCESSOR_ARCHITECTURE"), 0, &type, (LPBYTE)buffer, &size) == ERROR_SUCCESS && type == REG_SZ)
{
OutputDebugStringV(_T("Architecture = %hs\n"), buffer);
OutputDebugStringV(_T("Architecture = %s\n"), buffer);
}
else
{
Expand All @@ -216,7 +216,7 @@ static __forceinline void TRACE_PRINT_OS_INFO()
{
if (RegQueryValueEx(hKey, _T("CurrentVersion"), 0, &type, (LPBYTE)buffer, &size) == ERROR_SUCCESS && type == REG_SZ)
{
OutputDebugStringV(_T("Windows version = %hs\n"), buffer);
OutputDebugStringV(_T("Windows version = %s\n"), buffer);
}
else
{
Expand All @@ -236,7 +236,7 @@ static __forceinline void TRACE_PRINT_OS_INFO()
{
if (RegQueryValueEx(hKey, _T("CurrentType"), 0, &type, (LPBYTE)buffer, &size) == ERROR_SUCCESS && type == REG_SZ)
{
OutputDebugStringV(_T("Windows CurrentType = %hs\n"), buffer);
OutputDebugStringV(_T("Windows CurrentType = %s\n"), buffer);
}
else
{
Expand Down

0 comments on commit 925d91e

Please sign in to comment.