Alistair Leslie-Hughes : mscoree: Don't pass the string as a reference type .

Alexandre Julliard julliard at winehq.org
Mon Jan 9 14:24:30 CST 2012


Module: wine
Branch: master
Commit: 091f31744ac9d4415cc7f9cced1ac1f78ddbe000
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=091f31744ac9d4415cc7f9cced1ac1f78ddbe000

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Fri Jan  6 08:40:12 2012 +1100

mscoree: Don't pass the string as a reference type.

---

 dlls/mscoree/corruntimehost.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 04482be..5042f20 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -592,9 +592,12 @@ static HRESULT WINAPI CLRRuntimeHost_ExecuteInDefaultAppDomain(ICLRRuntimeHost*
         goto cleanup;
     }
 
+    /* The .NET function we are calling has the following declaration
+     *   public static int functionName(String param)
+     */
     argsA = WtoA(pwzArgument);
     str = This->mono->mono_string_new(domain, argsA);
-    args[0] = &str;
+    args[0] = str;
     args[1] = NULL;
     result = This->mono->mono_runtime_invoke(method, NULL, args, NULL);
     if (!result)




More information about the wine-cvs mailing list