From 8e371f8e7f62356b05da5fb191fbec09ef837024 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Sun, 19 Feb 2017 09:10:03 +0000 Subject: [PATCH] [SHELL32] -Try to fix themes when opening the control panel applet from the control panel. svn path=/trunk/; revision=73833 --- reactos/dll/win32/shell32/wine/control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/shell32/wine/control.c b/reactos/dll/win32/shell32/wine/control.c index f317b309047..9e8852c3a25 100644 --- a/reactos/dll/win32/shell32/wine/control.c +++ b/reactos/dll/win32/shell32/wine/control.c @@ -90,7 +90,8 @@ CPlApplet* Control_LoadApplet(HWND hWnd, LPCWSTR cmd, CPanel* panel) #ifdef __REACTOS__ StringCchCopy(fileBuffer, MAX_PATH, applet->cmd); - SearchPath(NULL, fileBuffer, NULL, MAX_PATH, fileBuffer, NULL); + if (PathIsFileSpecW(fileBuffer)) + SearchPath(NULL, fileBuffer, NULL, MAX_PATH, fileBuffer, NULL); ActCtx.lpSource = fileBuffer; ActCtx.lpResourceName = (LPCWSTR)123; applet->hActCtx = CreateActCtx(&ActCtx);