From 7ba90b37720aeef0c85189ac50f92db35a6a0d0f Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sun, 3 Oct 2021 04:05:27 +0300 Subject: [PATCH] Fixes #34 --- ExplorerPatcher/GUI.c | 10 +++++++++- ExplorerPatcher/dllmain.c | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index bbc584e..cbed30d 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -205,7 +205,15 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) if (p) { p--; - *p = 0; + if (p == L' ') + { + *p = 0; + } + else + { + p++; + *p = 0; + } } } rcText.bottom += GUI_CAPTION_LINE_HEIGHT - dwLineHeight; diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index b76fbde..1f79ae2 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -258,7 +258,15 @@ DWORD ShowLauncherTipContextMenu( if (p) { p--; - *p = 0; + if (p == L' ') + { + *p = 0; + } + else + { + p++; + *p = 0; + } } MENUITEMINFOW menuInfo;