VC6 doesn't define LONG_PTR
authorowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Wed, 11 Jan 2006 23:43:04 +0000 (23:43 +0000)
committerowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Wed, 11 Jan 2006 23:43:04 +0000 (23:43 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@6520 cda61777-01e9-0310-a592-d414129be87e

windows/windlg.c

index 019f615..dba4d5f 100644 (file)
@@ -240,7 +240,11 @@ static int SaneDialogBox(HINSTANCE hinst,
     wc.style = CS_DBLCLKS | CS_SAVEBITS | CS_BYTEALIGNWINDOW;
     wc.lpfnWndProc = DefDlgProc;
     wc.cbClsExtra = 0;
+#ifdef LONG_PTR
     wc.cbWndExtra = DLGWINDOWEXTRA + 2*sizeof(LONG_PTR);
+#else
+    wc.cbWndExtra = DLGWINDOWEXTRA + 8;
+#endif
     wc.hInstance = hinst;
     wc.hIcon = NULL;
     wc.hCursor = LoadCursor(NULL, IDC_ARROW);