components.dwUrlPathLength + 1);
hFile = CreateFileW(path, GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
-#ifndef __REACTOS__
- if (hFile == INVALID_HANDLE_VALUE)
+#ifdef __REACTOS__
+ if ((hFile == INVALID_HANDLE_VALUE) && (lstrlenW(components.lpszUrlPath) > 1) && (components.lpszUrlPath[1] != ':'))
+#else
+ if ((hFile == INVALID_HANDLE_VALUE)
+#endif
{
/* Try again on the current drive */
GetCurrentDirectoryW(components.dwUrlPathLength, path);
}
}
}
-#endif
if (hFile != INVALID_HANDLE_VALUE)
{
if ((ret = CRYPT_GetObjectFromFile(hFile, pObject)))