Author: tfaber Date: Sun Nov 6 12:17:42 2011 New Revision: 54311
URL: http://svn.reactos.org/svn/reactos?rev=54311&view=rev Log: [SYSSETUP] - Do not rely on setupapi's FileExists function, which shouldn't even be exported
Modified: trunk/reactos/dll/win32/syssetup/wizard.c
Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.c... ============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Sun Nov 6 12:17:42 2011 @@ -2263,8 +2263,9 @@ wcscpy(szBuffer, szDrive); wcscat(szBuffer, L"reactos\system32\ntoskrnl.exe"); LogItem(SYSSETUP_SEVERITY_INFORMATION, szBuffer); - if (FileExists(szBuffer, NULL)) - { + if (GetFileAttributesW(szBuffer) != INVALID_FILE_ATTRIBUTES) + { + /* the file exists, so this is the right drive */ wcsncpy(szPath, szDrive, dwPathLength); return TRUE; }