Browse Source

All: Fixed bug when extracting "Properties" string which failed to remove a trailing whitespace

pull/886/head
Valentin Radu 4 years ago
parent
commit
14e7eef87b
  1. 4
      ExplorerPatcher/GUI.c
  2. 6
      ExplorerPatcher/dllmain.c

4
ExplorerPatcher/GUI.c

@ -1186,7 +1186,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) @@ -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 @@ -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;
}

6
ExplorerPatcher/dllmain.c

@ -1086,7 +1086,7 @@ DWORD ShowLauncherTipContextMenu( @@ -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) @@ -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( @@ -2034,7 +2034,7 @@ INT64 Shell_TrayWndSubclassProc(
if (p)
{
p--;
if (p == L' ')
if (*p == L' ')
{
*p = 0;
}

Loading…
Cancel
Save