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:
parent
d4fa8265c9
commit
69dd275285
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue