This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restore safe reinterpret_casts in MSWindowsScreen

  • Loading branch information...
nlyan committed Sep 13, 2016
1 parent 2a5dc62 commit 788f6eab9f9c71adbec0b1b08fa831781a2a6231
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/lib/platform/MSWindowsScreen.cpp
@@ -864,7 +864,7 @@ void
MSWindowsScreen::destroyClass(ATOM windowClass) const
{
if (windowClass != 0) {
- UnregisterClass(static_cast<LPCTSTR>(windowClass), s_windowInstance);
+ UnregisterClass(reinterpret_cast<LPCTSTR>(windowClass), s_windowInstance);
}
}
@@ -874,7 +874,7 @@ MSWindowsScreen::createWindow(ATOM windowClass, const char* name) const
HWND window = CreateWindowEx(WS_EX_TOPMOST |
WS_EX_TRANSPARENT |
WS_EX_TOOLWINDOW,
- static_cast<LPCTSTR>(windowClass),
+ reinterpret_cast<LPCTSTR>(windowClass),
name,
WS_POPUP,
0, 0, 1, 1,
@@ -895,7 +895,7 @@ MSWindowsScreen::createDropWindow(ATOM windowClass, const char* name) const
WS_EX_TOPMOST |
WS_EX_TRANSPARENT |
WS_EX_ACCEPTFILES,
- static_cast<LPCTSTR>(m_class),
+ reinterpret_cast<LPCTSTR>(m_class),
name,
WS_POPUP,
0, 0, m_dropWindowSize, m_dropWindowSize,

0 comments on commit 788f6ea

Please sign in to comment.