Author: dchapyshev
Date: Wed Apr 22 16:20:26 2009
New Revision: 40647
URL:
http://svn.reactos.org/svn/reactos?rev=40647&view=rev
Log:
- Fix a problem with loading dlls in Iron
See issue #4201 for more details.
Modified:
trunk/reactos/dll/win32/kernel32/misc/ldr.c
Modified: trunk/reactos/dll/win32/kernel32/misc/ldr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/ld…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/ldr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/ldr.c [iso-8859-1] Wed Apr 22 16:20:26 2009
@@ -40,7 +40,7 @@
UNICODE_STRING ModuleName;
DWORD LastError = GetLastError(); /* GetEnvironmentVariable changes LastError */
- if (lpModule != NULL)
+ if ((lpModule != NULL) && (wcslen(lpModule) > 2) && (lpModule[1] ==
':'))
{
lpModuleEnd = lpModule + wcslen(lpModule);
}