https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1963e2d130d0c7451b332ab58fd53090b9fced09

commit 1963e2d130d0c7451b332ab58fd53090b9fced09
Author: Amine Khaldi <[email protected]>
AuthorDate: Sat Dec 23 13:46:14 2017 +0100

    [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 f233863236..5cd864e182 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 3ce259f4f8..a8a9c8a282 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;
             }

Reply via email to