- Fix a problem with loading dlls in Iron

See issue #4201 for more details.

svn path=/trunk/; revision=40647
This commit is contained in:
Dmitry Chapyshev 2009-04-22 12:20:26 +00:00
parent 67f6e0572a
commit cf37479786

View file

@ -40,7 +40,7 @@ GetDllLoadPath(LPCWSTR lpModule)
UNICODE_STRING ModuleName;
DWORD LastError = GetLastError(); /* GetEnvironmentVariable changes LastError */
if (lpModule != NULL)
if ((lpModule != NULL) && (wcslen(lpModule) > 2) && (lpModule[1] == ':'))
{
lpModuleEnd = lpModule + wcslen(lpModule);
}