Correct error message in case DOSFS_OpenDevice() fails on a COMx
device.
This commit is contained in:
parent
ea2a9a8974
commit
0a78857956
|
@ -723,6 +723,9 @@ static HANDLE DOSFS_CreateCommPort(LPCSTR name, DWORD access)
|
||||||
}
|
}
|
||||||
SERVER_END_REQ;
|
SERVER_END_REQ;
|
||||||
|
|
||||||
|
if(!ret)
|
||||||
|
ERR("Couldn't open %s ! (check permissions)\n",devname);
|
||||||
|
else
|
||||||
TRACE("return %08X\n", ret );
|
TRACE("return %08X\n", ret );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -780,7 +783,6 @@ HANDLE DOSFS_OpenDevice( const char *name, DWORD access )
|
||||||
|
|
||||||
if( (handle=DOSFS_CreateCommPort(DOSFS_Devices[i].name,access)) )
|
if( (handle=DOSFS_CreateCommPort(DOSFS_Devices[i].name,access)) )
|
||||||
return handle;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue