Issue with application button parameters

Discuss development issues and submit patches here
Post Reply
Passing by
Posts: 2
Joined: Mon Feb 11, 2013 6:48 pm

Issue with application button parameters

Post by Passing by »

Hi,
I'm facing an issue with application button parameters (I'm running the latest nightly builds), where parameters are not expanded (e.g. "%dir%" stays "%dir%" instead of becoming the current directory).
I suspect the issue is related to incorrect use of ExpandEnvironmentStringsForUser in MyExpandEnvironmentStrings: according to the documentation, since Windows 7, the token parameter passed to this function must have, in addition to TOKEN_IMPERSONATE and TOKEN_QUERY, TOKEN_DUPLICATE. See http://msdn.microsoft.com/en-us/library ... 85%29.aspx.

Edit: forgot to mention - I'm running Windows 7 64bit with SP1.

Post Reply