MinGW tweak: Use sizeof(PROPSHEETHEADER) instead of
PROPSHEETHEADER_V1_SIZE, since the latter is not available in
MinGW. Raises our requirements of comctl32.dll, but should be no
problem nowadays.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3333 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/rfb_win32/Dialog.cxx b/win/rfb_win32/Dialog.cxx
index 398334f..d07ecd6 100644
--- a/win/rfb_win32/Dialog.cxx
+++ b/win/rfb_win32/Dialog.cxx
@@ -259,7 +259,7 @@
// Initialise and create the PropertySheet itself
PROPSHEETHEADER header;
- header.dwSize = PROPSHEETHEADER_V1_SIZE;
+ header.dwSize = sizeof(PROPSHEETHEADER); // Requires comctl32.dll 4.71 or greater, ie IE 4 or later
header.dwFlags = PSH_MODELESS | (showApply ? 0 : PSH_NOAPPLYNOW) | (showCtxtHelp ? 0 : PSH_USECALLBACK);
header.pfnCallback = removeCtxtHelp;
header.hwndParent = owner;