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);