Author: greatlrd
Date: Thu Dec  9 14:27:56 2010
New Revision: 49994

URL: http://svn.reactos.org/svn/reactos?rev=49994&view=rev
Log:
EngLoadImageEx
BugFix so it can load .sys file as well.
Now we can load dxg.sys again

Modified:
    branches/reactx/reactos/subsystems/win32/win32k/eng/ldevobj.c

Modified: branches/reactx/reactos/subsystems/win32/win32k/eng/ldevobj.c
URL: 
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/subsystems/win32/win32k/eng/ldevobj.c?rev=49994&r1=49993&r2=49994&view=diff
==============================================================================
--- branches/reactx/reactos/subsystems/win32/win32k/eng/ldevobj.c [iso-8859-1] 
(original)
+++ branches/reactx/reactos/subsystems/win32/win32k/eng/ldevobj.c [iso-8859-1] 
Thu Dec  9 14:27:56 2010
@@ -355,8 +355,12 @@
     RtlAppendUnicodeToString(&strDriverName, pwsz);
 
     /* MSDN says "The driver must include this suffix in the pwszDriver 
string."
-       But in fact it's optional. */
-    if (_wcsnicmp(pwszDriverName + cwcLength - 4, L".dll", 4) != 0)
+       But in fact it's optional.
+
+       ms win32k EngLoadImageEx loading .sys file without append .dll
+    */
+    if ( (_wcsnicmp(pwszDriverName + cwcLength - 4, L".dll", 4) != 0) &&
+         (_wcsnicmp(pwszDriverName + cwcLength - 4, L".sys", 4) != 0) )
     {
         /* Append the .dll suffix */
         RtlAppendUnicodeToString(&strDriverName, L".dll");


Reply via email to