Alistair Leslie-Hughes : mscoree: Implemented GetRequestedRuntimeVersion.
Alexandre Julliard
julliard at winehq.org
Thu Apr 28 12:19:03 CDT 2011
Module: wine
Branch: master
Commit: 01c4adf477fbce5bbd9f85a3dc8a7d8b9f83026d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=01c4adf477fbce5bbd9f85a3dc8a7d8b9f83026d
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Apr 28 20:22:45 2011 +1000
mscoree: Implemented GetRequestedRuntimeVersion.
---
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 6701ef5..6fe32d2 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);
More information about the wine-cvs
mailing list