Re: msi 4: Add initial implementation of the DirectoryCombo control
24 Aug
2006
24 Aug
'06
9:48 p.m.
James Hawkins wrote:
+ indirect = msi_dup_property( dialog->package, control->property ); + prop = indirect; + } + + val = msi_dup_property( dialog->package, prop ); + lstrcpynW( path, val, MAX_PATH ); + + PathStripPathW( path ); + PathRemoveBackslashW( path );
Calling msi_dup_property allocates new strings, so you need to remember to free those strings too. Since it's allocated, why not use PathStripPathW and PathRemoveBackslashW on the allocated string, rather than trying to copy it first? Mike
7050
Age (days ago)
7050
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mike McCormack