msi: Fix an off-by-one error when calculating the path and filename for the action data in the SelfRegModules action.

The backslash is in p[0], not p[1].
This commit is contained in:
Rob Shearman 2007-04-24 12:33:56 +01:00 committed by Alexandre Julliard
parent 22cd120d5d
commit 220f93db61
1 changed files with 2 additions and 2 deletions

View File

@ -3498,8 +3498,8 @@ static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param)
uipath = strdupW( file->TargetPath );
p = strrchrW(uipath,'\\');
if (p)
p[1]=0;
MSI_RecordSetStringW( uirow, 1, &p[2] );
p[0]=0;
MSI_RecordSetStringW( uirow, 1, &p[1] );
MSI_RecordSetStringW( uirow, 2, uipath);
ui_actiondata( package, szSelfRegModules, uirow);
msiobj_release( &uirow->hdr );