From 980eeecf99e59768d0fa97a9e8790d7e8208c738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gouget?= Date: Fri, 5 Jan 2001 03:45:40 +0000 Subject: [PATCH] I triple checked but yes, CHOOSECOLOR.hInstance is an HWND... --- include/commdlg.h | 4 ++-- programs/cmdlgtst/cmdlgtst.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/commdlg.h b/include/commdlg.h index 43216ef622a..adf8ac7a3cb 100644 --- a/include/commdlg.h +++ b/include/commdlg.h @@ -123,7 +123,7 @@ typedef UINT CALLBACK (*LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM); typedef struct { DWORD lStructSize; HWND hwndOwner; - HWND hInstance; + HWND hInstance; /* Should be an HINSTANCE but MS made a typo */ DWORD rgbResult; LPDWORD lpCustColors; DWORD Flags; @@ -136,7 +136,7 @@ typedef CHOOSECOLORA *LPCHOOSECOLORA; typedef struct { DWORD lStructSize; HWND hwndOwner; - HWND hInstance; + HWND hInstance; /* Should be an HINSTANCE but MS made a typo */ DWORD rgbResult; LPDWORD lpCustColors; DWORD Flags; diff --git a/programs/cmdlgtst/cmdlgtst.c b/programs/cmdlgtst/cmdlgtst.c index 442153adaa4..864f30db023 100644 --- a/programs/cmdlgtst/cmdlgtst.c +++ b/programs/cmdlgtst/cmdlgtst.c @@ -152,7 +152,7 @@ void mwi_Color(HWND hWnd) cc.lStructSize = sizeof(CHOOSECOLOR); cc.hwndOwner = hWnd; - cc.hInstance = g_hInstance; + cc.hInstance = (HWND)g_hInstance; /* Should be an HINSTANCE but MS made a typo */ cc.rgbResult = RGB(0,0,0); cc.lpCustColors = cc_cr; cc.Flags = 0;