From 160f562107ee02993cc025ec427f052c8729e648 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 10 Jan 2005 14:25:58 +0000 Subject: [PATCH] Do not apply changes just because QueryDosDevice reversed the slashes. Change an ERR to a WARN, it's common for it to occur. --- programs/winecfg/drive.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/programs/winecfg/drive.c b/programs/winecfg/drive.c index a1a5bbc1c49..4ee00f3ea9c 100644 --- a/programs/winecfg/drive.c +++ b/programs/winecfg/drive.c @@ -295,6 +295,11 @@ void apply_drive_changes() /* get a drive */ if(QueryDosDevice(devicename, targetpath, sizeof(targetpath))) { + char *cursor; + + /* correct the slashes in the path to be UNIX style */ + while ((cursor = strchr(targetpath, '\\'))) *cursor = '/'; + foundDrive = TRUE; } @@ -395,7 +400,7 @@ void apply_drive_changes() snprintf(devicename, sizeof(devicename), "%c:\\", 'A' + i); if(!SetVolumeLabel(devicename, drives[i].label)) { - WINE_ERR("unable to set volume label for devicename of '%s', label of '%s'\n", + WINE_WARN("unable to set volume label for devicename of '%s', label of '%s'\n", devicename, drives[i].label); PRINTERROR(); }