From 1963e2d130d0c7451b332ab58fd53090b9fced09 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 23 Dec 2017 13:46:14 +0100 Subject: [PATCH] [CHARMAP] Rename OnCreate functions. #179 --- base/applications/charmap/charmap.c | 5 +++-- base/applications/charmap/map.c | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/base/applications/charmap/charmap.c b/base/applications/charmap/charmap.c index f2338632360..5cd864e182a 100644 --- a/base/applications/charmap/charmap.c +++ b/base/applications/charmap/charmap.c @@ -439,8 +439,9 @@ AdvancedDlgProc(HWND hDlg, return FALSE; } #endif + static int -OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam) +PanelOnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam) { HMENU hSysMenu; WCHAR lpAboutText[256]; @@ -488,7 +489,7 @@ PanelWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch (msg) { case WM_CREATE: - return OnCreate(hWnd, wParam, lParam); + return PanelOnCreate(hWnd, wParam, lParam); case WM_CLOSE: DestroyWindow(hWnd); diff --git a/base/applications/charmap/map.c b/base/applications/charmap/map.c index 3ce259f4f8d..a8a9c8a2823 100644 --- a/base/applications/charmap/map.c +++ b/base/applications/charmap/map.c @@ -376,9 +376,9 @@ OnClick(PMAP infoPtr, static BOOL -OnCreate(PMAP infoPtr, - HWND hwnd, - HWND hParent) +MapOnCreate(PMAP infoPtr, + HWND hwnd, + HWND hParent) { RECT rc; BOOL Ret = FALSE; @@ -558,9 +558,9 @@ MapWndProc(HWND hwnd, { case WM_CREATE: { - if (!OnCreate(infoPtr, - hwnd, - ((LPCREATESTRUCTW)lParam)->hwndParent)) + if (!MapOnCreate(infoPtr, + hwnd, + ((LPCREATESTRUCTW)lParam)->hwndParent)) { return (LRESULT)-1; }