Change error code return in VXD_Open to ERROR_FILE_NOT_FOUND

Mike Hearn mike at navi.cx
Tue Jul 6 15:11:54 CDT 2004


This patch allows some implementations of the MeltICE anti-debugger check
to pass.

Mike Hearn <mike at navi.cx>
Change error code return in VXD_Open to ERROR_FILE_NOT_FOUND

Index: dlls/kernel/vxd.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/vxd.c,v
retrieving revision 1.13
diff -u -p -r1.13 vxd.c
--- dlls/kernel/vxd.c   1 May 2004 05:25:08 -0000       1.13
+++ dlls/kernel/vxd.c   6 Jul 2004 20:06:56 -0000
@@ -182,7 +182,7 @@ HANDLE VXD_Open( LPCWSTR filenameW, DWOR
  
     if (!(GetVersion() & 0x80000000))  /* there are no VxDs on NT */
     {
-        SetLastError( ERROR_INVALID_PARAMETER );
+        SetLastError( ERROR_FILE_NOT_FOUND ); /* MeltICE depends on this value */
         return 0;
     }
  





More information about the wine-patches mailing list