diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index 028532b0..92fa6fc9 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -127,7 +127,7 @@ constexpr uint32_t xembed_focus_first = 1; */ // static const HCURSOR arrow_cursor = LoadCursor(nullptr, IDC_ARROW); inline HCURSOR arrow_cursor() { - static HCURSOR cursor{}; + static HCURSOR cursor = nullptr; if (!cursor) { cursor = LoadCursor(nullptr, IDC_ARROW); } diff --git a/src/wine-host/xdnd-proxy.cpp b/src/wine-host/xdnd-proxy.cpp index e2fdf0f9..c66fc6ec 100644 --- a/src/wine-host/xdnd-proxy.cpp +++ b/src/wine-host/xdnd-proxy.cpp @@ -59,7 +59,7 @@ constexpr char mime_text_plain_name[] = "text/plain"; // Revert this once Wine 7.21 is old enough that noone uses it anymore. // static const HCURSOR dnd_accepted_cursor = LoadCursor(nullptr, IDC_HAND); inline HCURSOR dnd_accepted_cursor() { - static HCURSOR cursor{}; + static HCURSOR cursor = nullptr; if (!cursor) { cursor = LoadCursor(nullptr, IDC_HAND); } @@ -68,7 +68,7 @@ inline HCURSOR dnd_accepted_cursor() { } // static const HCURSOR dnd_denied_cursor = LoadCursor(nullptr, IDC_NO); inline HCURSOR dnd_denied_cursor() { - static HCURSOR cursor{}; + static HCURSOR cursor = nullptr; if (!cursor) { cursor = LoadCursor(nullptr, IDC_NO); }