[ROSBE/OPTIONS]

* Stop SEGV from trying to fclose(NULL). Brought to you by Mike Nordell aka tamlin.

svn path=/trunk/RosBE/; revision=1586
This commit is contained in:
Amine Khaldi 2012-08-28 12:35:36 +00:00
parent b66de08a8d
commit cda561969f

View File

@ -314,7 +314,6 @@ WriteSettings(POPTIONS_DLG infoPtr)
if (!pFilecmd)
{
fclose(pFilecmd);
fclose(pFileps1);
LoadStringW(hInstance, MSG_CMDFFAILED, msgerror, 256);
MessageBoxW(infoPtr->hwndDlg, msgerror, NULL, MB_ICONERROR);
@ -323,7 +322,6 @@ WriteSettings(POPTIONS_DLG infoPtr)
if (!pFileps1)
{
fclose(pFilecmd);
fclose(pFileps1);
LoadStringW(hInstance, MSG_PS1FFAILED, msgerror, 256);
MessageBoxW(infoPtr->hwndDlg, msgerror, NULL, MB_ICONERROR);
}