mscoree: Redirect .NET 1.0 to .NET 2.0 (try 2)

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Fri Aug 16 05:08:43 CDT 2013


Hi,
Correct test


Changelog:
      mscoree: Redirect .NET 1.0 to .NET 2.0


Best Regards
   Alistair Leslie-Hughes

-------------- next part --------------
>From 3d07d148d6a2fdb798b4cdd874cae48821816430 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed, 14 Aug 2013 14:08:31 +1000
Subject: [PATCH] Redirect .NET 1.0 to .NET 2.0
To: wine-patches <wine-patches at winehq.org>

---
 dlls/mscoree/metahost.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c
index eabdcf5..519e991 100644
--- a/dlls/mscoree/metahost.c
+++ b/dlls/mscoree/metahost.c
@@ -50,9 +50,10 @@ static const WCHAR net_40_subdir[] = {'4','.','0',0};
 
 static const struct ICLRRuntimeInfoVtbl CLRRuntimeInfoVtbl;
 
-#define NUM_RUNTIMES 3
+#define NUM_RUNTIMES 4
 
 static struct CLRRuntimeInfo runtimes[NUM_RUNTIMES] = {
+    {{&CLRRuntimeInfoVtbl}, net_20_subdir, 1, 0, 3705, 0},
     {{&CLRRuntimeInfoVtbl}, net_20_subdir, 1, 1, 4322, 0},
     {{&CLRRuntimeInfoVtbl}, net_20_subdir, 2, 0, 50727, 0},
     {{&CLRRuntimeInfoVtbl}, net_40_subdir, 4, 0, 30319, 0}
@@ -1390,7 +1391,7 @@ HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file,
         find_runtimes();
 
         if (legacy)
-            i = 2;
+            i = 3;
         else
             i = NUM_RUNTIMES;
 
-- 
1.8.1.2



More information about the wine-patches mailing list