Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 60 of file extrac32.c.
Referenced by add_files_to_folder(), copy_install_file(), unpack_iso(), and wWinMain().
{ WCHAR destfile[MAX_PATH]; /* append source filename if destination is a directory */ if (PathIsDirectoryW(destination)) { PathCombineW(destfile, destination, PathFindFileNameW(source)); destination = destfile; } 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]; snprintfW(msg, sizeof(msg)/sizeof(msg[0]), overwriteMsg, destination); if (MessageBoxW(NULL, msg, titleMsg, MB_YESNO | MB_ICONWARNING) != IDYES) return; } WINE_TRACE("copying %s to %s\n", wine_dbgstr_w(source), wine_dbgstr_w(destination)); CopyFileW(source, destination, FALSE); }