[SHELL32] -Try to fix themes when opening the control panel applet from the control panel.

svn path=/trunk/; revision=73833
This commit is contained in:
Giannis Adamopoulos 2017-02-19 09:10:03 +00:00
parent 099a790594
commit 8e371f8e7f

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