This commit is contained in:
Igor Pavlov 2024-05-14 00:00:00 +00:00
parent 5b39dc76f1
commit fc662341e6
501 changed files with 33187 additions and 10416 deletions

View file

@ -1,5 +1,5 @@
/* SfxSetup.c - 7z SFX Setup
2019-02-02 : Igor Pavlov : Public domain */
2024-01-24 : Igor Pavlov : Public domain */
#include "Precomp.h"
@ -278,10 +278,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#ifdef _CONSOLE
SetConsoleCtrlHandler(HandlerRoutine, TRUE);
#else
UNUSED_VAR(hInstance);
UNUSED_VAR(hPrevInstance);
UNUSED_VAR(lpCmdLine);
UNUSED_VAR(nCmdShow);
UNUSED_VAR(hInstance)
UNUSED_VAR(hPrevInstance)
UNUSED_VAR(lpCmdLine)
UNUSED_VAR(nCmdShow)
#endif
CrcGenerateTable();
@ -516,12 +516,13 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#endif
{
const SRes res2 = File_Close(&outFile);
const WRes res2 = File_Close(&outFile);
if (res != SZ_OK)
break;
if (res2 != SZ_OK)
if (res2 != 0)
{
res = res2;
errorMessage = "Can't close output file";
res = SZ_ERROR_FAIL;
break;
}
}