From 077b4024be6f908bc949566222713246fbd2bb77 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 18 Dec 2006 03:40:13 -0600 Subject: [PATCH] mscoree: Add a stub for GetCORSystemDirectory. --- dlls/mscoree/mscoree.spec | 4 ++-- dlls/mscoree/mscoree_main.c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dlls/mscoree/mscoree.spec b/dlls/mscoree/mscoree.spec index 80dac086d60..0d3106ddc44 100644 --- a/dlls/mscoree/mscoree.spec +++ b/dlls/mscoree/mscoree.spec @@ -39,8 +39,8 @@ @ stdcall GetAssemblyMDImport(ptr ptr ptr) @ stub GetCORRequiredVersion @ stub GetCORRootDirectory -@ stub GetCORSystemDirectory -@ stdcall GetCORVersion(wstr long ptr) +@ stdcall GetCORSystemDirectory(ptr long ptr) +@ stdcall GetCORVersion(ptr long ptr) @ stub GetCompileInfo @ stub GetFileVersion @ stub GetHashFromAssemblyFile diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c index 414e725d63c..90057bc8ba4 100644 --- a/dlls/mscoree/mscoree_main.c +++ b/dlls/mscoree/mscoree_main.c @@ -192,6 +192,18 @@ DWORD _CorValidateImage(LPCVOID* imageBase, LPCWSTR imageName) return E_FAIL; } +HRESULT WINAPI GetCORSystemDirectory(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength) +{ + FIXME("(%p, %d, %p): stub!\n", pbuffer, cchBuffer, dwLength); + + if (!dwLength) + return E_POINTER; + + *dwLength = 0; + + return S_OK; +} + HRESULT WINAPI GetCORVersion(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength) { static const WCHAR version[] = {'v','1','.','1','.','4','3','2','2',0};