>From 8e741173916d021a2fb399122f8efd88baf92830 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Thu, 28 Apr 2011 20:22:45 +1000 Subject: [PATCH] Implemented GetRequestedRuntimeVersion To: wine-patches --- dlls/mscoree/mscoree.spec | 2 +- dlls/mscoree/mscoree_main.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/dlls/mscoree/mscoree.spec b/dlls/mscoree/mscoree.spec index 452f6bd..b944c34 100644 --- a/dlls/mscoree/mscoree.spec +++ b/dlls/mscoree/mscoree.spec @@ -59,7 +59,7 @@ @ stub GetProcessExecutableHeap @ stdcall GetRealProcAddress(str ptr) @ stdcall GetRequestedRuntimeInfo(wstr wstr wstr long long ptr long ptr ptr long ptr) -@ stub GetRequestedRuntimeVersion +@ stdcall GetRequestedRuntimeVersion(wstr ptr long ptr) @ stub GetRequestedRuntimeVersionForCLSID @ stub GetStartupFlags @ stub GetTargetForVTableEntry diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c index a00336c..cb0b853 100644 --- a/dlls/mscoree/mscoree_main.c +++ b/dlls/mscoree/mscoree_main.c @@ -249,6 +249,16 @@ HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR pExe, LPCWSTR pwszVersion, LPCWST return ret; } +HRESULT WINAPI GetRequestedRuntimeVersion(LPWSTR pExe, LPWSTR pVersion, DWORD cchBuffer, DWORD *dwlength) +{ + TRACE("(%s, %p, %d, %p)\n", debugstr_w(pExe), debugstr_w(pExe), cchBuffer, dwlength); + + if(!dwlength) + return E_POINTER; + + return GetRequestedRuntimeInfo(pExe, NULL, NULL, 0, 0, NULL, 0, NULL, pVersion, cchBuffer, dwlength); +} + HRESULT WINAPI GetRealProcAddress(LPCSTR procname, void **ppv) { FIXME("(%s, %p)\n", debugstr_a(procname), ppv); -- 1.7.1