aboutsummaryrefslogtreecommitdiff
path: root/src/win/native/cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/win/native/cursor.cpp')
-rw-r--r--src/win/native/cursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win/native/cursor.cpp b/src/win/native/cursor.cpp
index 987d2d54..8c0e393b 100644
--- a/src/win/native/cursor.cpp
+++ b/src/win/native/cursor.cpp
@@ -25,7 +25,7 @@ WinCursor::~WinCursor() {
namespace {
WinCursor* LoadWinCursor(const wchar_t* name) {
- const auto handle = ::LoadCursorW(NULL, name);
+ const auto handle = static_cast<HCURSOR>(::LoadImageW(NULL, name, IMAGE_CURSOR, SM_CYCURSOR, SM_CYCURSOR, LR_SHARED));
if (handle == NULL) {
throw Win32Error(::GetLastError(), "Failed to get system cursor.");
}