384 {
390 {
393 }
394 if (is_dir)
396
398 {
400 do
401 {
402
404 {
407 {
408
409 char Buf[10];
413 {
414
416 break;
417 }
418 }
419 }
422
424 {
426 }
428 {
430 }
431 }
432 else
433 {
435 }
436
438 {
439 DPRINT1(
"ERROR, unzOpenCurrentFilePassword: 0x%x\n",
err);
442 }
443
446 {
449 {
450 bool bOverwrite = *bOverwriteAll;
451 if (!*bOverwriteAll)
452 {
455 {
457 *bOverwriteAll = true;
458
460 bOverwrite = true;
461 break;
463 break;
467 }
468 }
469
470 if (bOverwrite)
471 {
474 {
476 }
477 }
478 else
479 {
482 }
483 }
485 {
487 DPRINT1(
"ERROR, CreateFile: 0x%x (%s)\n",
dwErr, *bOverwriteAll ?
"Y" :
"N");
490 }
491 }
492
493 do
494 {
495 if (*bCancel)
496 {
499 if (!deleteResult)
502 }
503
505
507 {
508 DPRINT1(
"ERROR, unzReadCurrentFile: 0x%x\n",
err);
509 break;
510 }
512 {
515 {
517 break;
518 }
520 {
521 DPRINT1(
"ERROR, WriteFile: dwWritten:%d err:%d\n", dwWritten,
err);
522 break;
523 }
524 }
525
527
528
534
535
537
539 {
541 DPRINT1(
"ERROR, unzReadCurrentFile2: 0x%x\n",
err);
544 }
545 else
546 {
549 {
550 DPRINT1(
"ERROR(non-fatal), unzCloseCurrentFile: 0x%x\n",
err);
551 }
552 }
554 }
eZipConfirmResponse _CZipAskReplace(HWND hDlg, PCWSTR FullPath)
eZipPasswordResponse _CZipAskPassword(HWND hDlg, PCWSTR filename, CStringA &Password)
#define MINIZIP_PASSWORD_FLAG
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
#define FAILED_UNEXPECTEDLY(hr)
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
BOOL WINAPI SetFileTime(IN HANDLE hFile, CONST FILETIME *lpCreationTime OPTIONAL, CONST FILETIME *lpLastAccessTime OPTIONAL, CONST FILETIME *lpLastWriteTime OPTIONAL)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
BOOL WINAPI DosDateTimeToFileTime(IN WORD wFatDate, IN WORD wFatTime, OUT LPFILETIME lpFileTime)
BOOL WINAPI LocalFileTimeToFileTime(IN CONST FILETIME *lpLocalFileTime, OUT LPFILETIME lpFileTime)
_In_ NDIS_ERROR_CODE ErrorCode
EXTERN_C HRESULT WINAPI SHPathPrepareForWriteW(HWND hwnd, IUnknown *modless, LPCWSTR path, DWORD flags)
#define SHPPFW_IGNOREFILENAME
int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password)
int ZEXPORT unzOpenCurrentFile(unzFile file)
int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, unsigned len)
int ZEXPORT unzCloseCurrentFile(unzFile file)
DWORD WINAPI GetLastError(void)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define ERROR_FILE_EXISTS