[PATCH] extrac32: Use wide-char string literals.

Michael Stefaniuc mstefani at winehq.org
Mon Oct 5 16:22:51 CDT 2020


Signed-off-by: Michael Stefaniuc <mstefani 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 c557ff0733f..278f8ff9bf5 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;
     }
 
-- 
2.26.2




More information about the wine-devel mailing list