Index: dlls/mscoree/mscoree.spec
===================================================================
RCS file: /home/wine/wine/dlls/mscoree/mscoree.spec,v
retrieving revision 1.4
diff -u -p -u -r1.4 mscoree.spec
--- dlls/mscoree/mscoree.spec	3 Nov 2006 13:33:47 -0000	1.4
+++ dlls/mscoree/mscoree.spec	13 Dec 2006 15:31:09 -0000
@@ -39,7 +39,7 @@
 @ stdcall GetAssemblyMDImport(ptr ptr ptr)
 @ stub GetCORRequiredVersion
 @ stub GetCORRootDirectory
-@ stub GetCORSystemDirectory
+@ stdcall GetCORSystemDirectory(wstr long ptr)
 @ stdcall GetCORVersion(wstr long ptr)
 @ stub GetCompileInfo
 @ stub GetFileVersion

Index: dlls/mscoree/mscoree_main.c
===================================================================
RCS file: /home/wine/wine/dlls/mscoree/mscoree_main.c,v
retrieving revision 1.4
diff -u -p -u -r1.4 mscoree_main.c
--- dlls/mscoree/mscoree_main.c	6 Nov 2006 14:51:50 -0000	1.4
+++ dlls/mscoree/mscoree_main.c	13 Dec 2006 15:24:41 -0000
@@ -98,6 +98,15 @@ DWORD _CorValidateImage(LPCVOID* imageBa
     return E_FAIL;
 }
 
+HRESULT GetCORSystemDirectory(LPWSTR pBuffer, DWORD cchBuffer, DWORD* dwlength)
+{
+    if(!dwlength)
+    	return E_POINTER;
+
+    *dwlength = GetSystemDirectoryW(pBuffer, cchBuffer);
+    return S_OK;
+}
+
 HRESULT WINAPI GetCORVersion(LPWSTR pbuffer, DWORD cchBuffer, DWORD *dwLength)
 {
     static const WCHAR version[] = {'v','1','.','1','.','4','3','2','2',0};