Alexander Morozov : kernel32: NT drivers can handle IOCTL codes with HIWORD == 0.

Alexandre Julliard julliard at winehq.org
Fri Nov 14 07:54:49 CST 2008


Module: wine
Branch: master
Commit: f52402e71a121ef967d046143087b9b5650b6ecd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f52402e71a121ef967d046143087b9b5650b6ecd

Author: Alexander Morozov <amorozov at etersoft.ru>
Date:   Thu Nov 13 13:15:10 2008 +0300

kernel32: NT drivers can handle IOCTL codes with HIWORD == 0.

---

 dlls/kernel32/vxd.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/vxd.c b/dlls/kernel32/vxd.c
index 9227bad..1ce1060 100644
--- a/dlls/kernel32/vxd.c
+++ b/dlls/kernel32/vxd.c
@@ -339,12 +339,11 @@ BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
 
     /* Check if this is a user defined control code for a VxD */
 
-    if( HIWORD( dwIoControlCode ) == 0 )
+    if (HIWORD( dwIoControlCode ) == 0 && (GetVersion() & 0x80000000))
     {
         DeviceIoProc proc = get_vxd_proc( hDevice );
         if (proc) return proc( dwIoControlCode, lpvInBuffer, cbInBuffer,
                                lpvOutBuffer, cbOutBuffer, lpcbBytesReturned, lpOverlapped );
-        return FALSE;
     }
 
     /* Not a VxD, let ntdll handle it */




More information about the wine-cvs mailing list