Michael Stefaniuc : extrac32: Use wide-char string literals.
Alexandre Julliard
julliard at winehq.org
Tue Oct 6 15:33:09 CDT 2020
Module: wine
Branch: master
Commit: 69dd275285e96972b27f01e9b2fce5f8dc0ff9c8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=69dd275285e96972b27f01e9b2fce5f8dc0ff9c8
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Mon Oct 5 23:22:51 2020 +0200
extrac32: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/extrac32/extrac32.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/programs/extrac32/extrac32.c b/programs/extrac32/extrac32.c
index c557ff0733..278f8ff9bf 100644
--- a/programs/extrac32/extrac32.c
+++ b/programs/extrac32/extrac32.c
@@ -115,11 +115,9 @@ static void copy_file(LPCWSTR source, LPCWSTR destination)
if (PathFileExistsW(destination) && !force_mode)
{
- static const WCHAR overwriteMsg[] = {'O','v','e','r','w','r','i','t','e',' ','"','%','s','"','?',0};
- static const WCHAR titleMsg[] = {'E','x','t','r','a','c','t',0};
WCHAR msg[MAX_PATH+100];
- swprintf(msg, ARRAY_SIZE(msg), overwriteMsg, destination);
- if (MessageBoxW(NULL, msg, titleMsg, MB_YESNO | MB_ICONWARNING) != IDYES)
+ swprintf(msg, ARRAY_SIZE(msg), L"Overwrite \"%s\"?", destination);
+ if (MessageBoxW(NULL, msg, L"Extract", MB_YESNO | MB_ICONWARNING) != IDYES)
return;
}
More information about the wine-cvs
mailing list