summaryrefslogtreecommitdiff
path: root/src/lib/cross_windows.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-09 21:55:15 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-10 20:50:32 +0200
commit7a4763153548619b379222d5c22d10b238ba0ac3 (patch)
tree9388ed2352aec643e938727bbbc9c9155d9092fb /src/lib/cross_windows.cc
parent9e90111e53a0b0739d0789afd26f29e63f803917 (diff)
Convert some paths to string.
Diffstat (limited to 'src/lib/cross_windows.cc')
-rw-r--r--src/lib/cross_windows.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc
index 3fdaad61a..474ffe8c5 100644
--- a/src/lib/cross_windows.cc
+++ b/src/lib/cross_windows.cc
@@ -617,7 +617,7 @@ Drive::unmount()
{
LOG_DISK("Unmounting %1 with %2 mount points", _device, _mount_points.size());
DCPOMATIC_ASSERT(_mount_points.size() == 1);
- string const device_name = String::compose("\\\\.\\%1", _mount_points.front());
+ string const device_name = String::compose("\\\\.\\%1", _mount_points.front().string());
string const truncated = device_name.substr(0, device_name.length() - 1);
LOG_DISK("Actually opening %1", truncated);
HANDLE device = CreateFileA(truncated.c_str(), (GENERIC_READ | GENERIC_WRITE), FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0);