PATCH: ne module / .drv loading

Marcus Meissner meissner at suse.de
Sat Sep 3 13:33:02 CDT 2005


Hi,

Otherwise repeated wineps16.drv loading will cause the latter assert().

Ciao, Marcus

Changelog:
	Also check for .drv extension.

Index: dlls/kernel/ne_module.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/ne_module.c,v
retrieving revision 1.50
diff -u -r1.50 ne_module.c
--- dlls/kernel/ne_module.c	22 Jul 2005 09:03:14 -0000	1.50
+++ dlls/kernel/ne_module.c	3 Sep 2005 18:09:50 -0000
@@ -173,7 +173,9 @@
             if (!NE_strcasecmp( builtin_dlls[i].file_name, dllname ) ||
             /* check the dll module name (without extension) */
                 (!NE_strncasecmp( dllname, name_table+1, *name_table ) &&
-                 !strcmp( dllname + *name_table, ".dll" )))
+                 (!strcmp( dllname + *name_table, ".dll" ) ||
+                  !strcmp( dllname + *name_table, ".drv" ))
+                ))
             {
                 *file_name = builtin_dlls[i].file_name;
                 return builtin_dlls[i].header;



More information about the wine-patches mailing list