From 04982aa11d707e9b0ef21b2d39121726cb6397ce Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 2 Oct 2021 19:17:24 +0300 Subject: [PATCH] Updated method name in GUI --- ExplorerPatcher/GUI.c | 4 ++-- ExplorerPatcher/GUI.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index 4048d53..5dae946 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -749,7 +749,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) return TRUE; } -static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { +static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { GUI* _this; if (uMsg == WM_CREATE) { @@ -889,7 +889,7 @@ __declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLin WNDCLASS wc = { 0 }; ZeroMemory(&wc, sizeof(WNDCLASSW)); wc.style = CS_DBLCLKS; - wc.lpfnWndProc = WindowProc; + wc.lpfnWndProc = GUI_WindowProc; wc.hbrBackground = _this.hBackgroundBrush; wc.hInstance = hModule; wc.lpszClassName = L"ExplorerPatcherGUI"; diff --git a/ExplorerPatcher/GUI.h b/ExplorerPatcher/GUI.h index f62d605..c7f6783 100644 --- a/ExplorerPatcher/GUI.h +++ b/ExplorerPatcher/GUI.h @@ -56,7 +56,7 @@ static HRESULT GUI_AboutProc( static BOOL GUI_Build(HDC hDC, HWND hWnd); -static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); +static LRESULT CALLBACK GUI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); __declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLine, int nCmdShow); #endif