[SHELL32] -Try to fix themes when opening the control panel applet from the control...
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 19 Feb 2017 09:10:03 +0000 (09:10 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 19 Feb 2017 09:10:03 +0000 (09:10 +0000)
svn path=/trunk/; revision=73833

reactos/dll/win32/shell32/wine/control.c

index f317b30..9e8852c 100644 (file)
@@ -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);