mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
[SYSSETUP]
- Do not rely on setupapi's FileExists function, which shouldn't even be exported svn path=/trunk/; revision=54311
This commit is contained in:
parent
3b9a6f799a
commit
aeacf320c4
1 changed files with 2 additions and 1 deletions
|
@ -2263,8 +2263,9 @@ GetRosInstallCD(WCHAR * szPath, DWORD dwPathLength)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue