No subject


Tue Aug 30 15:12:41 CDT 2005


to open a serial port when the permissions are not right, Wine gives
the slightly misleading message "device open COM1 not supported
(yet)".

Changelog:

	files	:dos_fs.c
	Correct error message in case DOSFS_OpenDevice() fails on a
	COMx device.

Rein.
-- 
Rein Klazes
rklazes at casema.net

----=_t5909tsc7bhkdb8g6kp2b3d39aprsj7se8.MFSBCHJLHS
Content-Type: text/plain; charset=us-ascii; name=opendev.diff
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=opendev.diff

--- ./wine/files/dos_fs.c	Sat Feb 17 07:47:45 2001
+++ ./mywine/files/dos_fs.c	Sun Feb 18 11:28:38 2001
@@ -723,7 +723,10 @@
     }
     SERVER_END_REQ;
 
-    TRACE("return %08X\n", ret );
+    if(!ret)
+        ERR("Couldn't open %s ! (check permissions)\n",devname);
+    else
+        TRACE("return %08X\n", ret );
     return ret;
 }
 
@@ -780,8 +783,8 @@
 
                 if( (handle=DOSFS_CreateCommPort(DOSFS_Devices[i].name,access)) )
                     return handle;
-
-		FIXME("device open %s not supported (yet)\n",DOSFS_Devices[i].name);
+                else
+                    FIXME("device open %s not supported (yet)\n",DOSFS_Devices[i].name);
     		return 0;
 	    }
         }

----=_t5909tsc7bhkdb8g6kp2b3d39aprsj7se8.MFSBCHJLHS--



More information about the wine-patches mailing list