diff --git a/dlls/wintrust/wintrust_main.c b/dlls/wintrust/wintrust_main.c index f7fc3cac348..28d5a254278 100644 --- a/dlls/wintrust/wintrust_main.c +++ b/dlls/wintrust/wintrust_main.c @@ -197,14 +197,13 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID, /* Undocumented: the published software action is passed a path, * and pSIPClientData points to a WIN_TRUST_SUBJECT_FILE. */ - LPCWSTR path = (LPCWSTR)data->u.pFile; LPWIN_TRUST_SUBJECT_FILE subjectFile = (LPWIN_TRUST_SUBJECT_FILE)data->pSIPClientData; WINTRUST_FILE_INFO fileInfo = { sizeof(fileInfo), 0 }; TRACE("subjectFile->hFile: %p\n", subjectFile->hFile); TRACE("subjectFile->lpPath: %s\n", debugstr_w(subjectFile->lpPath)); - fileInfo.pcwszFilePath = path; + fileInfo.pcwszFilePath = subjectFile->lpPath; fileInfo.hFile = subjectFile->hFile; wintrust_data.u.pFile = &fileInfo; wintrust_data.dwUnionChoice = WTD_CHOICE_FILE;