summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CDUtils.cpp
diff options
context:
space:
mode:
authordaco65 <daco65@gmail.com>2009-02-24 17:06:27 +0000
committerdaco65 <daco65@gmail.com>2009-02-24 17:06:27 +0000
commit2d6a977dc54cd8a347cabb1659b597dcdd5df66f (patch)
treebd65a14822598eb1ec963b5a79bb0c5309d7823e /Source/Core/Common/Src/CDUtils.cpp
parent53060dff38077d6a906756d01713b22419227a2d (diff)
made the menu display the drive path in a more common way instead of the NT device path
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2416 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/CDUtils.cpp')
-rw-r--r--Source/Core/Common/Src/CDUtils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/CDUtils.cpp b/Source/Core/Common/Src/CDUtils.cpp
index 37c6190f7a..6b5927287e 100644
--- a/Source/Core/Common/Src/CDUtils.cpp
+++ b/Source/Core/Common/Src/CDUtils.cpp
@@ -2,6 +2,7 @@
With minor adjustments */
#include "CDUtils.h"
+#include "common.h"
/*!
Follow symlinks until we have the real device file
@@ -103,7 +104,7 @@ const char *is_cdrom_win32(const char c_drive_letter) {
case DRIVE_CDROM: {
char sz_win32_drive_full[] = "\\\\.\\X:";
sz_win32_drive_full[4] = c_drive_letter;
- return strdup(sz_win32_drive_full);
+ return strdup(&sz_win32_drive_full[4]);
}
default:
//cdio_debug("Drive %c is not a CD-ROM", c_drive_letter);