forked from metin-server/m2dev-client-src
compile error fixes
This commit is contained in:
@@ -8,7 +8,7 @@ HINSTANCE CMSWindow::ms_hInstance = NULL;
|
||||
|
||||
LRESULT CALLBACK MSWindowProcedure(HWND hWnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
CMSWindow * pWnd = (CMSWindow *) GetWindowLong(hWnd, GWL_USERDATA);
|
||||
CMSWindow * pWnd = (CMSWindow *)GetWindowLongPtr(hWnd, GWLP_USERDATA);
|
||||
|
||||
if (pWnd)
|
||||
return pWnd->WindowProcedure(hWnd, uiMsg, wParam, lParam);
|
||||
@@ -79,7 +79,7 @@ bool CMSWindow::Create(const char* c_szName, int brush, DWORD cs, DWORD ws, HICO
|
||||
if (!m_hWnd)
|
||||
return false;
|
||||
|
||||
SetWindowLong(m_hWnd, GWL_USERDATA, (DWORD) this);
|
||||
SetWindowLongPtr(m_hWnd, GWLP_USERDATA, (DWORD) this);
|
||||
//DestroyWindow(ImmGetDefaultIMEWnd(m_hWnd));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user