Re: msi 4: Add initial implementation of the DirectoryCombo control
Aug. 25, 2006
2:48 a.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
7153
Age (days ago)
7153
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mike McCormack