Sorry, this time with patch attached

Hello,

i have a program that trys to open the serial port with CreateFile() like 
this:

Call kernel32.CreateFileA(00422f7c "\\\\.\\COM1",c0000000,00000000, 
00000000,00000003,00000080,00000000)

The function call fail with current CVS. After debugging some time i found a 
fix for the problem. But my knowlodge of the CreateFile function an all its 
different usages is verry limited. Therefore i post the patch here for 
comment.

Bye Stefan


--- ../wine/files/file.c	2004-03-10 18:06:34.000000000 +0100
+++ files/file.c	2004-03-11 22:12:01.000000000 +0100
@@ -354,7 +354,7 @@
             }
             goto done;
         }
-        else if (!RtlIsDosDeviceName_U( filename ))
+        else if (!RtlIsDosDeviceName_U( filename + 4 ))
         {
             ret = VXD_Open( filename+4, access, sa );
             goto done;

Reply via email to