diff src/dialog-msw.c @ 5920:0f2338afbabf cygwin

Minimum necessary to get started: sufficient to compile OK, run -nw, but not with window
author Henry Thompson <ht@markup.co.uk>
date Mon, 21 Apr 2014 11:42:50 +0100
parents 56144c8593a8
children 68639fb08af8
line wrap: on
line diff
--- a/src/dialog-msw.c	Thu Dec 16 11:20:17 2021 +0000
+++ b/src/dialog-msw.c	Mon Apr 21 11:42:50 2014 +0100
@@ -194,13 +194,13 @@
   switch (msg)
     {
     case WM_INITDIALOG:
-      qxeSetWindowLong (hwnd, DWL_USER, l_param);
+      qxeSetWindowLongPtr (hwnd, DWLP_USER, l_param);
       break;
       
     case WM_DESTROY:
       {
 	Lisp_Object data;
-	data = GET_LISP_FROM_VOID ((void *) qxeGetWindowLong (hwnd, DWL_USER));
+	data = GET_LISP_FROM_VOID (qxeGetWindowLongPtr (hwnd, DWLP_USER));
 	Vdialog_data_list = delq_no_quit (data, Vdialog_data_list);
       }
       break;
@@ -210,7 +210,7 @@
 	Lisp_Object fn, arg, data;
 	struct mswindows_dialog_id *did;
 
-	data = GET_LISP_FROM_VOID ((void *) qxeGetWindowLong (hwnd, DWL_USER));
+	data = GET_LISP_FROM_VOID ( qxeGetWindowLongPtr (hwnd, DWLP_USER));
 	did = XMSWINDOWS_DIALOG_ID (data);
 	if (w_param != IDCANCEL) /* user pressed escape */
 	  {