shell32: Automatically expand CPL applet path string (try 2)

Hermès BÉLUSCA - MAÏTO hermes.belusca at sfr.fr
Wed Apr 9 08:27:31 CDT 2014


Symptom: when running “control.exe
%systemroot%\system32\some_custom_cpl.cpl” (or “rundll32.exe
shell32.dll,Control_RunDLL %systemroot%\system32\some_custom_cpl.cpl”, or
even, loading a CPL registered in HKLM\Software\Microsoft\Windows\Control
Panel\Cpls), it fails because the path string is not expanded.
Solution: always expand the CPL applet path string, so that, if it contains
environment variables, they get expanded, and if not, the usual behaviour is
obtained.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell32_control.patch
Type: application/octet-stream
Size: 1956 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140409/11416805/attachment.obj>


More information about the wine-patches mailing list