mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
msi: Don't write past end of string when selecting parent directory.
This commit is contained in:
parent
d6dc917232
commit
bbce5d014d
1 changed files with 5 additions and 2 deletions
|
@ -2862,8 +2862,11 @@ static UINT dialog_directorylist_up( msi_dialog *dialog )
|
|||
|
||||
/* strip off the last directory */
|
||||
ptr = PathFindFileNameW( path );
|
||||
if (ptr != path) *(ptr - 1) = '\0';
|
||||
PathAddBackslashW( path );
|
||||
if (ptr != path)
|
||||
{
|
||||
*(ptr - 1) = '\0';
|
||||
PathAddBackslashW( path );
|
||||
}
|
||||
|
||||
dialog_set_property( dialog->package, prop, path );
|
||||
|
||||
|
|
Loading…
Reference in a new issue