From ec351f3015939172911e8ed856e01e38f5592aa1 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 17 Mar 2019 22:53:55 -0400 Subject: [PATCH] fix warnings --- desmume/src/frontend/windows/inputdx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/frontend/windows/inputdx.cpp b/desmume/src/frontend/windows/inputdx.cpp index d4c3e265d..595a9744d 100755 --- a/desmume/src/frontend/windows/inputdx.cpp +++ b/desmume/src/frontend/windows/inputdx.cpp @@ -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)