#6037 Use MAKEINTATOM macro in place of dodgy casts

This commit is contained in:
Andrew Nelless 2017-05-12 20:15:57 +01:00
parent ae8db8b125
commit 762718d938
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ void
MSWindowsDesks::destroyClass(ATOM windowClass) const
{
if (windowClass != 0) {
UnregisterClass(reinterpret_cast<LPCTSTR>(windowClass),
UnregisterClass(MAKEINTATOM(windowClass),
MSWindowsScreen::getWindowInstance());
}
}
@ -437,7 +437,7 @@ MSWindowsDesks::createWindow(ATOM windowClass, const char* name) const
{
HWND window = CreateWindowEx(WS_EX_TRANSPARENT |
WS_EX_TOOLWINDOW,
reinterpret_cast<LPCTSTR>(windowClass),
MAKEINTATOM(windowClass),
name,
WS_POPUP,
0, 0, 1, 1,