diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index ae55f60..479f874 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -1186,7 +1186,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) if (p) { p--; - if (p == L' ') + if (*p == L' ') { *p = 0; } @@ -3600,7 +3600,7 @@ __declspec(dllexport) int ZZGUI(HWND hWnd, HINSTANCE hInstance, LPSTR lpszCmdLin if (p) { p--; - if (p == L' ') + if (*p == L' ') { *p = 0; } diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 28e9604..3e19fbd 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -1086,7 +1086,7 @@ DWORD ShowLauncherTipContextMenu( if (p) { p--; - if (p == L' ') + if (*p == L' ') { *p = 0; } @@ -1720,7 +1720,7 @@ HMENU explorer_LoadMenuW(HINSTANCE hInstance, LPCWSTR lpMenuName) if (p) { p--; - if (p == L' ') + if (*p == L' ') { *p = 0; } @@ -2034,7 +2034,7 @@ INT64 Shell_TrayWndSubclassProc( if (p) { p--; - if (p == L' ') + if (*p == L' ') { *p = 0; }