diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-14 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-15 23:55:04 +0500 |
commit | fc662341e6f85da78ada0e443f6116b978f79f22 (patch) | |
tree | 1be1cc402a7a9cbc18d4eeea6b141354c2d559e3 /C/Util/SfxSetup/SfxSetup.c | |
parent | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (diff) | |
download | 7zip-24.05.tar.gz 7zip-24.05.tar.bz2 7zip-24.05.zip |
24.0524.05
Diffstat (limited to '')
-rw-r--r-- | C/Util/SfxSetup/SfxSetup.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/C/Util/SfxSetup/SfxSetup.c b/C/Util/SfxSetup/SfxSetup.c index 7304a0b..9b5c1f9 100644 --- a/C/Util/SfxSetup/SfxSetup.c +++ b/C/Util/SfxSetup/SfxSetup.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* SfxSetup.c - 7z SFX Setup | 1 | /* SfxSetup.c - 7z SFX Setup |
2 | 2019-02-02 : Igor Pavlov : Public domain */ | 2 | 2024-01-24 : Igor Pavlov : Public domain */ |
3 | 3 | ||
4 | #include "Precomp.h" | 4 | #include "Precomp.h" |
5 | 5 | ||
@@ -278,10 +278,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | |||
278 | #ifdef _CONSOLE | 278 | #ifdef _CONSOLE |
279 | SetConsoleCtrlHandler(HandlerRoutine, TRUE); | 279 | SetConsoleCtrlHandler(HandlerRoutine, TRUE); |
280 | #else | 280 | #else |
281 | UNUSED_VAR(hInstance); | 281 | UNUSED_VAR(hInstance) |
282 | UNUSED_VAR(hPrevInstance); | 282 | UNUSED_VAR(hPrevInstance) |
283 | UNUSED_VAR(lpCmdLine); | 283 | UNUSED_VAR(lpCmdLine) |
284 | UNUSED_VAR(nCmdShow); | 284 | UNUSED_VAR(nCmdShow) |
285 | #endif | 285 | #endif |
286 | 286 | ||
287 | CrcGenerateTable(); | 287 | CrcGenerateTable(); |
@@ -516,12 +516,13 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | |||
516 | #endif | 516 | #endif |
517 | 517 | ||
518 | { | 518 | { |
519 | const SRes res2 = File_Close(&outFile); | 519 | const WRes res2 = File_Close(&outFile); |
520 | if (res != SZ_OK) | 520 | if (res != SZ_OK) |
521 | break; | 521 | break; |
522 | if (res2 != SZ_OK) | 522 | if (res2 != 0) |
523 | { | 523 | { |
524 | res = res2; | 524 | errorMessage = "Can't close output file"; |
525 | res = SZ_ERROR_FAIL; | ||
525 | break; | 526 | break; |
526 | } | 527 | } |
527 | } | 528 | } |