Rémi Bernon : mscoree: Avoid using pointer after free.

Alexandre Julliard julliard at winehq.org
Wed Jun 15 16:05:57 CDT 2022


Module: wine
Branch: master
Commit: b88355355127776049c5a43bf84d6866edeb9cc9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b88355355127776049c5a43bf84d6866edeb9cc9

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Sun May 22 17:13:26 2022 +0200

mscoree: Avoid using pointer after free.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>

---

 dlls/mscoree/corruntimehost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 1651ca69d29..42081ad99bb 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -1917,7 +1917,7 @@ HRESULT create_monodata(REFCLSID clsid, LPVOID *ppObj)
             HeapFree(GetProcessHeap(), 0, filenameA);
             if (!assembly)
             {
-                ERR("Cannot open assembly %s, status=%i\n", filenameA, status);
+                ERR("Cannot open assembly %s, status=%i\n", debugstr_w(filename), status);
                 domain_restore(prev_domain);
                 goto cleanup;
             }




More information about the wine-cvs mailing list