Module: wine Branch: master Commit: 8d5f94b19924639e306d30defceb068a63c7e6e7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d5f94b19924639e306d30defc...
Author: Aric Stewart aric@codeweavers.com Date: Tue Dec 11 22:16:03 2007 +0900
wintrust: Implementations for WTHelperGetFileName and WTHelperGetFileHandle.
---
dlls/wintrust/wintrust.spec | 4 ++-- dlls/wintrust/wintrust_main.c | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/dlls/wintrust/wintrust.spec b/dlls/wintrust/wintrust.spec index 5629c3d..552cfdd 100644 --- a/dlls/wintrust/wintrust.spec +++ b/dlls/wintrust/wintrust.spec @@ -77,8 +77,8 @@ @ stub WTHelperCertIsSelfSigned @ stub WTHelperCheckCertUsage @ stub WTHelperGetAgencyInfo -@ stub WTHelperGetFileHandle -@ stub WTHelperGetFileName +@ stdcall WTHelperGetFileHandle(ptr) +@ stdcall WTHelperGetFileName(ptr) @ stub WTHelperGetKnownUsages @ stdcall WTHelperGetProvCertFromChain(ptr long) @ stub WTHelperGetProvPrivateDataFromChain diff --git a/dlls/wintrust/wintrust_main.c b/dlls/wintrust/wintrust_main.c index cb6724f..b7788b1 100644 --- a/dlls/wintrust/wintrust_main.c +++ b/dlls/wintrust/wintrust_main.c @@ -432,6 +432,30 @@ CRYPT_PROVIDER_DATA * WINAPI WTHelperProvDataFromStateData(HANDLE hStateData) return (CRYPT_PROVIDER_DATA *)hStateData; }
+/*********************************************************************** + * WTHelperGetFileName(WINTRUST.@) + */ +LPCWSTR WINAPI WTHelperGetFileName(WINTRUST_DATA *data) +{ + TRACE("%p\n",data); + if (data->dwUnionChoice == WTD_CHOICE_FILE) + return data->u.pFile->pcwszFilePath; + else + return NULL; +} + +/*********************************************************************** + * WTHelperGetFileHandle(WINTRUST.@) + */ +HANDLE WINAPI WTHelperGetFileHandle(WINTRUST_DATA *data) +{ + TRACE("%p\n",data); + if (data->dwUnionChoice == WTD_CHOICE_FILE) + return data->u.pFile->hFile; + else + return INVALID_HANDLE_VALUE; +} + static const WCHAR Software_Publishing[] = { 'S','o','f','t','w','a','r','e','\', 'M','i','c','r','o','s','o','f','t','\',