mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +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);
|
wcscpy(szBuffer, szDrive);
|
||||||
wcscat(szBuffer, L"reactos\\system32\\ntoskrnl.exe");
|
wcscat(szBuffer, L"reactos\\system32\\ntoskrnl.exe");
|
||||||
LogItem(SYSSETUP_SEVERITY_INFORMATION, szBuffer);
|
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);
|
wcsncpy(szPath, szDrive, dwPathLength);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue