From 15a55fe69afda7df3ed99f781b5bcb3138455d80 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 14 Mar 2024 09:32:45 +0800 Subject: [PATCH] C standard conformance --- tools/redpanda-win-git-askpass/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/redpanda-win-git-askpass/main.cpp b/tools/redpanda-win-git-askpass/main.cpp index e3682813..a2fdc248 100644 --- a/tools/redpanda-win-git-askpass/main.cpp +++ b/tools/redpanda-win-git-askpass/main.cpp @@ -40,7 +40,11 @@ LRESULT CALLBACK TxtPasswordWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l if (wParam==VK_RETURN) { TCHAR s[500+1]; Edit_GetText(hwndTxtPassword,s,500); - _tprintf(_T("%s"), s); +#ifdef _UNICODE + wprintf(L"%ls", s); +#else + printf("%s",s); +#endif DestroyWindow(hMainDlg); return TRUE; }