extrac32: Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-10-05 23:22:51 +02:00 committed by Alexandre Julliard
parent d4fa8265c9
commit 69dd275285
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}