aboutsummaryrefslogtreecommitdiff
path: root/src/base/platform/win/Win32FileStream.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 08:37:30 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 08:37:30 +0800
commit3c8d5c8f732239a8b50418be27464e30b9dddeae (patch)
tree8ffb46c18e48c8463c1fb16fcacf216f296b8a1f /src/base/platform/win/Win32FileStream.cpp
parent37943858b3b260589b5dc222bb5184d2846fb6dc (diff)
downloadcru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.gz
cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.tar.bz2
cru-3c8d5c8f732239a8b50418be27464e30b9dddeae.zip
Exception remove string.
Diffstat (limited to 'src/base/platform/win/Win32FileStream.cpp')
-rw-r--r--src/base/platform/win/Win32FileStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/platform/win/Win32FileStream.cpp b/src/base/platform/win/Win32FileStream.cpp
index f3809b3e..341fe9d3 100644
--- a/src/base/platform/win/Win32FileStream.cpp
+++ b/src/base/platform/win/Win32FileStream.cpp
@@ -29,7 +29,7 @@ Win32FileStream::Win32FileStream(String path, OpenFileFlag flags)
if (flags & io::OpenFileFlags::Write) {
grfMode |= STGM_WRITE;
} else {
- throw Exception(u"Stream must be readable or writable.");
+ throw Exception("Stream must be readable or writable.");
}
}
@@ -80,7 +80,7 @@ Index Win32FileStream::DoRead(std::byte* buffer, Index offset, Index size) {
Index Win32FileStream::DoWrite(const std::byte* buffer, Index offset,
Index size) {
if (size < 0) {
- throw Exception(u"Size must be greater than 0.");
+ throw Exception("Size must be greater than 0.");
}
CheckClosed();