Closed lifenjoiner closed 7 months ago
all ExpandEnvironmentStringsEx()
+ ExtractFirstArgument()
requires similar change.
case IDC_SEARCHEXE:
could use:
ExtractFirstArgument(arg1, arg1, arg2);
ExpandEnvironmentStringsEx(arg1, COUNTOF(arg1));
ExpandEnvironmentStringsEx(arg2, COUNTOF(arg2));
Committed changes as ca521610a8115625ca8be15282ecb3d4acc72dd7, applied similar change to metapath, kept ExpandEnvironmentStringsEx()
for lpParameters
as the document for SEE_MASK_DOENVSUBST
says:
Expand any environment variables specified in the string given by the
lpDirectory
orlpFil
e member.
Great! Careless me.
Align with
Win + R
, for convenience. Test example:%ProgramFiles%
.