From 43ec0a4d068a387d92a48961f9f294231ba70b78 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 25 Aug 2005 09:50:08 +0000 Subject: [PATCH] Display the correct text string in the action text field for the dialog boxes. Also the string should be deformatted. --- dlls/msi/action.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 92d0716f25b..21387fac6b8 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -379,6 +379,7 @@ static void ui_actionstart(MSIPACKAGE *package, LPCWSTR action) WCHAR timet[0x100]; MSIRECORD * row = 0; LPCWSTR ActionText; + LPWSTR deformated; GetTimeFormatW(LOCALE_USER_DEFAULT, 0, NULL, format, timet, 0x100); @@ -387,8 +388,10 @@ static void ui_actionstart(MSIPACKAGE *package, LPCWSTR action) return; ActionText = MSI_RecordGetString(row,2); + deformat_string(package, ActionText, &deformated); - sprintfW(message,template_s,timet,action,ActionText); + sprintfW(message,template_s,timet,action,deformated); + ce_actiontext(package, deformated); msiobj_release(&row->hdr); row = MSI_CreateRecord(1); @@ -396,6 +399,7 @@ static void ui_actionstart(MSIPACKAGE *package, LPCWSTR action) MSI_ProcessMessage(package, INSTALLMESSAGE_ACTIONSTART, row); msiobj_release(&row->hdr); + HeapFree(GetProcessHeap(),0,deformated); } static void ui_actioninfo(MSIPACKAGE *package, LPCWSTR action, BOOL start, @@ -799,7 +803,6 @@ static BOOL ACTION_HandleStandardAction(MSIPACKAGE *package, LPCWSTR action, { if (strcmpW(StandardActions[i].action, action)==0) { - ce_actiontext(package, action); if (!run) { ui_actioninfo(package, action, TRUE, 0); -- 2.11.4.GIT