From bae51a440678d1ac7baaf7f0660015f5d360094b Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Thu, 18 May 2017 00:06:56 +0100 Subject: [PATCH] #6037 Use MAKEINTATOM in MSWindowsScreen --- src/lib/platform/MSWindowsScreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/platform/MSWindowsScreen.cpp b/src/lib/platform/MSWindowsScreen.cpp index bcb794e1..a19731a6 100644 --- a/src/lib/platform/MSWindowsScreen.cpp +++ b/src/lib/platform/MSWindowsScreen.cpp @@ -858,7 +858,7 @@ void MSWindowsScreen::destroyClass(ATOM windowClass) const { if (windowClass != 0) { - UnregisterClass(reinterpret_cast(windowClass), s_windowInstance); + UnregisterClass(MAKEINTATOM(windowClass), s_windowInstance); } } @@ -889,7 +889,7 @@ MSWindowsScreen::createDropWindow(ATOM windowClass, const char* name) const WS_EX_TOPMOST | WS_EX_TRANSPARENT | WS_EX_ACCEPTFILES, - reinterpret_cast(m_class), + MAKEINTATOM(m_class), name, WS_POPUP, 0, 0, m_dropWindowSize, m_dropWindowSize,