[PATCH v2 2/2] regedit: Use correct printf specifier for UINT64 (QWORD) values

Hugh McMaster wine at gitlab.winehq.org
Wed Jun 29 08:02:40 CDT 2022


From: Hugh McMaster <hugh.mcmaster at outlook.com>

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/listview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index e314862ee6f..8e40d488b15 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -122,7 +122,7 @@ void format_value_data(HWND hwndLV, int index, DWORD type, void *data, DWORD siz
         {
             UINT64 value = *(UINT64 *)data;
             WCHAR buf[64];
-            swprintf(buf, ARRAY_SIZE(buf), L"0x%08Ix (%Iu)", value, value);
+            swprintf(buf, ARRAY_SIZE(buf), L"0x%08I64x (%I64u)", value, value);
             ListView_SetItemTextW(hwndLV, index, 2, buf);
             break;
         }
-- 
GitLab

https://gitlab.winehq.org/wine/wine/-/merge_requests/340



More information about the wine-devel mailing list