diff options
author | 杨宇千 <crupest@outlook.com> | 2019-09-08 19:09:38 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-09-08 19:09:38 +0800 |
commit | 8b9a306d6f24dbc08aeee16b115260406e79126d (patch) | |
tree | db37b8c3441a28b7150b1f40ddf79c7fa9dcda79 /src/win/native/cursor.cpp | |
parent | 2c40085dd30d6e7370a0974ad1f642a61acc6e30 (diff) | |
download | cru-8b9a306d6f24dbc08aeee16b115260406e79126d.tar.gz cru-8b9a306d6f24dbc08aeee16b115260406e79126d.tar.bz2 cru-8b9a306d6f24dbc08aeee16b115260406e79126d.zip |
...
Diffstat (limited to 'src/win/native/cursor.cpp')
-rw-r--r-- | src/win/native/cursor.cpp | 2 |
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."); } |