pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wine64-dev: wine-4.13 isn't throwing page fault when hModule is 0x0



Module Name:	pkgsrc-wip
Committed By:	Naveen Narayanan <zerous@nocebo.space>
Pushed By:	zerous
Date:		Wed Aug 14 16:47:38 2019 +0200
Changeset:	1e1f2c2344f257082804862aae53a4a1786969f7

Added Files:
	wine64-dev/patches/patch-dlls_ntdll_loader.c

Log Message:
wine64-dev: wine-4.13 isn't throwing page fault when hModule is 0x0

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1e1f2c2344f257082804862aae53a4a1786969f7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 wine64-dev/patches/patch-dlls_ntdll_loader.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diffs:
diff --git a/wine64-dev/patches/patch-dlls_ntdll_loader.c b/wine64-dev/patches/patch-dlls_ntdll_loader.c
new file mode 100644
index 0000000000..1550643755
--- /dev/null
+++ b/wine64-dev/patches/patch-dlls_ntdll_loader.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+wine-4.13 doesn't throw page_fault and hence the exception handler isn't used
+
+--- dlls/ntdll/loader.c.orig	2019-08-13 22:46:25.481501462 +0000
++++ dlls/ntdll/loader.c
+@@ -3512,6 +3512,9 @@ PIMAGE_NT_HEADERS WINAPI RtlImageNtHeade
+ {
+     IMAGE_NT_HEADERS *ret;
+ 
++    if (!hModule)
++	    return NULL;
++    
+     __TRY
+     {
+         IMAGE_DOS_HEADER *dos = (IMAGE_DOS_HEADER *)hModule;


Home | Main Index | Thread Index | Old Index