Commit 220f93db authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

msi: Fix an off-by-one error when calculating the path and filename for the…

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].
parent 22cd120d
...@@ -3498,8 +3498,8 @@ static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param) ...@@ -3498,8 +3498,8 @@ static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param)
uipath = strdupW( file->TargetPath ); uipath = strdupW( file->TargetPath );
p = strrchrW(uipath,'\\'); p = strrchrW(uipath,'\\');
if (p) if (p)
p[1]=0; p[0]=0;
MSI_RecordSetStringW( uirow, 1, &p[2] ); MSI_RecordSetStringW( uirow, 1, &p[1] );
MSI_RecordSetStringW( uirow, 2, uipath); MSI_RecordSetStringW( uirow, 2, uipath);
ui_actiondata( package, szSelfRegModules, uirow); ui_actiondata( package, szSelfRegModules, uirow);
msiobj_release( &uirow->hdr ); msiobj_release( &uirow->hdr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment