From 3fa90b539e24d44bf8a0587ffb0d060ad0c6350b Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Tue, 19 Sep 2023 17:28:33 +0900 Subject: [PATCH] [ATL] Default value of dwInitParam is zero instead of NULL (#5703) Fix warnings when dwInitParam was omitted at CDialogImpl::Create and/or CDialogImpl::DoModal. --- sdk/lib/atl/atlwin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/atl/atlwin.h b/sdk/lib/atl/atlwin.h index b970fe7b173..69225fe262c 100644 --- a/sdk/lib/atl/atlwin.h +++ b/sdk/lib/atl/atlwin.h @@ -1478,7 +1478,7 @@ public: using CWindowImplRoot::m_hWnd; // - Hacks for gcc - HWND Create(HWND hWndParent, LPARAM dwInitParam = NULL) + HWND Create(HWND hWndParent, LPARAM dwInitParam = 0) { BOOL result; HWND hWnd; @@ -1495,7 +1495,7 @@ public: return hWnd; } - INT_PTR DoModal(HWND hWndParent = ::GetActiveWindow(), LPARAM dwInitParam = NULL) + INT_PTR DoModal(HWND hWndParent = ::GetActiveWindow(), LPARAM dwInitParam = 0) { BOOL result; T* pImpl;