From e3178f9fbc338ca17db073faa3f8f5dfcb4af104 Mon Sep 17 00:00:00 2001 From: Lawson Whitney Date: Wed, 27 Dec 2000 03:28:13 +0000 Subject: [PATCH] Allow an application to open a dos device ending with ':'. --- files/dos_fs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index 52db6c1d671..db203f92fde 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -662,7 +662,7 @@ const DOS_DEVICE *DOSFS_GetDevice( const char *name ) if (!FILE_strncasecmp( dev, name, strlen(dev) )) { p = name + strlen( dev ); - if (!*p || (*p == '.')) return &DOSFS_Devices[i]; + if (!*p || (*p == '.') || (*p == ':')) return &DOSFS_Devices[i]; } } return NULL; @@ -747,7 +747,7 @@ HFILE DOSFS_OpenDevice( const char *name, DWORD access ) if (!FILE_strncasecmp( dev, name, strlen(dev) )) { p = name + strlen( dev ); - if (!*p || (*p == '.')) { + if (!*p || (*p == '.') || (*p == ':')) { /* got it */ if (!strcmp(DOSFS_Devices[i].name,"NUL")) return FILE_CreateFile( "/dev/null", access, @@ -778,7 +778,7 @@ HFILE DOSFS_OpenDevice( const char *name, DWORD access ) return FILE_CreateDevice( i, access, NULL ); } - if( (handle=DOSFS_CreateCommPort(name,access)) ) + if( (handle=DOSFS_CreateCommPort(DOSFS_Devices[i].name,access)) ) return handle; FIXME("device open %s not supported (yet)\n",DOSFS_Devices[i].name);