summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-19 22:31:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-24 08:46:56 +0100
commitfa257a38b0d41cbfa9a9c1535761b406bff6adb5 (patch)
tree6a332fb8f493fc0ddcd88d7718b715351033b777 /embedserv
parent04277e7bcf2c7b2dd507b5765d069dc437d650ed (diff)
Use Get/SetWindowLongPtr, for 64-bit build
Change-Id: I02e5ca8dad87c24f8bf6e192a6b37ffc82a5a04a
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/syswinwrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/embedserv/source/embed/syswinwrapper.cxx b/embedserv/source/embed/syswinwrapper.cxx
index 424b24f98310..7670a640d4fb 100644
--- a/embedserv/source/embed/syswinwrapper.cxx
+++ b/embedserv/source/embed/syswinwrapper.cxx
@@ -393,14 +393,14 @@ LRESULT APIENTRY winwrap::HatchWndProc(
HDC hDC;
PAINTSTRUCT ps;
- phw=(PCHatchWin)GetWindowLong(hWnd, HWWL_STRUCTURE);
+ phw=(PCHatchWin)GetWindowLongPtr(hWnd, HWWL_STRUCTURE);
POINT ptMouse;
switch (iMsg)
{
case WM_CREATE:
phw=(PCHatchWin)((LPCREATESTRUCT)lParam)->lpCreateParams;
- SetWindowLong(hWnd, HWWL_STRUCTURE, (LONG)phw);
+ SetWindowLongPtr(hWnd, HWWL_STRUCTURE, (LONG_PTR)phw);
break;
case WM_PAINT:
hDC=BeginPaint(hWnd,&ps);