From 0a78857956247f424a60d12fef593ddc09f983d5 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Tue, 20 Feb 2001 01:52:41 +0000 Subject: [PATCH] Correct error message in case DOSFS_OpenDevice() fails on a COMx device. --- files/dos_fs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index 6dec7b0a2fd..671afea7b40 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -723,7 +723,10 @@ static HANDLE DOSFS_CreateCommPort(LPCSTR name, DWORD access) } 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,7 @@ HANDLE DOSFS_OpenDevice( const char *name, DWORD access ) if( (handle=DOSFS_CreateCommPort(DOSFS_Devices[i].name,access)) ) return handle; - - FIXME("device open %s not supported (yet)\n",DOSFS_Devices[i].name); + FIXME("device open %s not supported (yet)\n",DOSFS_Devices[i].name); return 0; } }