Alex Henrie : mountmgr: Name DosDevices constants consistently.

Alexandre Julliard julliard at winehq.org
Mon May 15 16:09:23 CDT 2017


Module: wine
Branch: master
Commit: 88f245d068c1e86d96164bc0b8a5fd708702575f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=88f245d068c1e86d96164bc0b8a5fd708702575f

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun May 14 23:43:05 2017 -0600

mountmgr: Name DosDevices constants consistently.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mountmgr.sys/device.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 1b439d2..5101f2b 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -1000,12 +1000,12 @@ static BOOL create_port_device( DRIVER_OBJECT *driver, int n, const char *unix_p
 {
     static const WCHAR comW[] = {'C','O','M','%','u',0};
     static const WCHAR lptW[] = {'L','P','T','%','u',0};
-    static const WCHAR auxW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\','A','U','X',0};
-    static const WCHAR prnW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\','P','R','N',0};
     static const WCHAR device_serialW[] = {'\\','D','e','v','i','c','e','\\','S','e','r','i','a','l','%','u',0};
     static const WCHAR device_parallelW[] = {'\\','D','e','v','i','c','e','\\','P','a','r','a','l','l','e','l','%','u',0};
     static const WCHAR dosdevices_comW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\','C','O','M','%','u',0};
+    static const WCHAR dosdevices_auxW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\','A','U','X',0};
     static const WCHAR dosdevices_lptW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\','L','P','T','%','u',0};
+    static const WCHAR dosdevices_prnW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\','P','R','N',0};
     const WCHAR *dos_name_format, *nt_name_format, *reg_value_format, *symlink_format, *default_device;
     WCHAR dos_name[7], reg_value[256], nt_buffer[32], symlink_buffer[32];
     DWORD type, size;
@@ -1020,7 +1020,7 @@ static BOOL create_port_device( DRIVER_OBJECT *driver, int n, const char *unix_p
         nt_name_format = device_serialW;
         reg_value_format = comW;
         symlink_format = dosdevices_comW;
-        default_device = auxW;
+        default_device = dosdevices_auxW;
     }
     else
     {
@@ -1028,7 +1028,7 @@ static BOOL create_port_device( DRIVER_OBJECT *driver, int n, const char *unix_p
         nt_name_format = device_parallelW;
         reg_value_format = dosdevices_lptW;
         symlink_format = dosdevices_lptW;
-        default_device = prnW;
+        default_device = dosdevices_prnW;
     }
 
     sprintfW( dos_name, dos_name_format, n );




More information about the wine-cvs mailing list