fix warnings

This commit is contained in:
zeromus 2019-03-17 22:53:55 -04:00
parent 72ecc8e66c
commit ec351f3015
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
licensed under the terms supplied at the end of this file (for the terms are very long!)
Differences from that baseline version are:
Copyright (C) 2009-2016 DeSmuME team
Copyright (C) 2009-2019 DeSmuME team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -1301,12 +1301,12 @@ static void InitCustomControls()
InputCust * GetInputCustom(HWND hwnd)
{
return (InputCust *)GetWindowLong(hwnd, 0);
return (InputCust *)GetWindowLongPtr(hwnd, 0);
}
void SetInputCustom(HWND hwnd, InputCust *icp)
{
SetWindowLong(hwnd, 0, (LONG)icp);
SetWindowLongPtr(hwnd, 0, (LONG_PTR)icp);
}
LRESULT InputCustom_OnPaint(InputCust *ccp, WPARAM wParam, LPARAM lParam)