Author: cwittich
Date: Sun Mar 11 19:04:07 2012
New Revision: 56121
URL:
http://svn.reactos.org/svn/reactos?rev=56121&view=rev
Log:
[setup16]
check if setup.lst file exists
Modified:
trunk/reactos/base/applications/setup16/main.c
Modified: trunk/reactos/base/applications/setup16/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/setup16/…
==============================================================================
--- trunk/reactos/base/applications/setup16/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/setup16/main.c [iso-8859-1] Sun Mar 11 19:04:07 2012
@@ -83,6 +83,12 @@
wcscpy(szFileName, szSetupPath);
wcscat(szFileName, L"setup.lst");
+ if (GetFileAttributes(szFileName) == INVALID_FILE_ATTRIBUTES)
+ {
+ MessageBoxW(0, L"Cannot find Setup.lst file", L"Error", MB_OK
| MB_ICONERROR);
+ return 1;
+ }
+
/* read information from setup.lst */
GetPrivateProfileStringW(NT_PARAMS, L"CabinetFile", NULL, szCabFileName,
MAX_PATH, szFileName);
GetPrivateProfileStringW(NT_PARAMS, L"TmpDirName", NULL, szTempDirName, 50,
szFileName);