#6037 Use MAKEINTATOM in MSWindowsScreen

This commit is contained in:
Andrew Nelless 2017-05-18 00:06:56 +01:00
parent 3e6920964a
commit bae51a4406
1 changed files with 2 additions and 2 deletions

View File

@ -858,7 +858,7 @@ void
MSWindowsScreen::destroyClass(ATOM windowClass) const
{
if (windowClass != 0) {
UnregisterClass(reinterpret_cast<LPCTSTR>(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<LPCTSTR>(m_class),
MAKEINTATOM(m_class),
name,
WS_POPUP,
0, 0, m_dropWindowSize, m_dropWindowSize,