diff options
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 | } |