Juan Lang : wintrust: Use path in WIN_TRUST_SUBJECT_FILE structure rather than assuming a path is passed in place of WINTRUST_DATA 's pFile member.

Alexandre Julliard julliard at winehq.org
Fri Jul 11 08:44:05 CDT 2008


Module: wine
Branch: master
Commit: 0c419108ef962f5e8c3e904506b156505802722b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0c419108ef962f5e8c3e904506b156505802722b

Author: Juan Lang <juan.lang at gmail.com>
Date:   Thu Jul 10 12:34:07 2008 -0700

wintrust: Use path in WIN_TRUST_SUBJECT_FILE structure rather than assuming a path is passed in place of WINTRUST_DATA's pFile member.

---

 dlls/wintrust/wintrust_main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/wintrust/wintrust_main.c b/dlls/wintrust/wintrust_main.c
index f7fc3ca..28d5a25 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;




More information about the wine-cvs mailing list