C standard conformance

This commit is contained in:
Roy Qu 2024-03-14 09:32:45 +08:00
parent a5f7b02324
commit 15a55fe69a
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,11 @@ LRESULT CALLBACK TxtPasswordWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
if (wParam==VK_RETURN) { if (wParam==VK_RETURN) {
TCHAR s[500+1]; TCHAR s[500+1];
Edit_GetText(hwndTxtPassword,s,500); Edit_GetText(hwndTxtPassword,s,500);
_tprintf(_T("%s"), s); #ifdef _UNICODE
wprintf(L"%ls", s);
#else
printf("%s",s);
#endif
DestroyWindow(hMainDlg); DestroyWindow(hMainDlg);
return TRUE; return TRUE;
} }