https://bugs.winehq.org/show_bug.cgi?id=56882
Bug ID: 56882 Summary: ConEmu errors: Injecting hooks failed (regression) Product: Wine Version: 9.1 Hardware: x86-64 OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Regression SHA1: 6ea77ec0864eb7870ce3418bf828077c2a072413 Distribution: Debian
Throws the aforementioned error at start. And this also causes ansi escape codes to appear in console
6ea77ec0864eb7870ce3418bf828077c2a072413 is the first bad commit commit 6ea77ec0864eb7870ce3418bf828077c2a072413 Author: Alexandre Julliard julliard@winehq.org Date: Tue Jun 18 12:08:03 2024 +0200
kernelbase: Make memory writable in WriteProcessMemory if necessary.
https://bugs.winehq.org/show_bug.cgi?id=56882
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/Maximus5 | |/ConEmu/releases CC| |julliard@winehq.org
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- added dl-link
https://bugs.winehq.org/show_bug.cgi?id=56882
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|ConEmu errors: Injecting |ConEmu errors: Injecting |hooks failed (regression) |hooks failed Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=56882
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Hack below makes ConEmu work properly again.
Might help to pinpoint cause /fix regression
diff --git a/dlls/kernelbase/memory.c b/dlls/kernelbase/memory.c index 46b155b7a47..5ce3f61d8c0 100644 --- a/dlls/kernelbase/memory.c +++ b/dlls/kernelbase/memory.c @@ -621,6 +621,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH WriteProcessMemory( HANDLE process, void *addr, co case PAGE_READWRITE: case PAGE_WRITECOPY: case PAGE_EXECUTE_READWRITE: + case (PAGE_NOCACHE | PAGE_EXECUTE_READWRITE): case PAGE_EXECUTE_WRITECOPY: /* already writable */ if ((status = NtWriteVirtualMemory( process, addr, buffer, size, bytes_written ))) break;
https://bugs.winehq.org/show_bug.cgi?id=56882
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |270b679bf8affb39c471a521302 | |b8fe4637b7d89 CC| |infyquest@gmail.com Resolution|--- |FIXED
--- Comment #3 from Vijay Kamuju infyquest@gmail.com --- Fix committed - https://source.winehq.org/git/wine.git/commitdiff/270b679bf8affb39c471a52130...
https://bugs.winehq.org/show_bug.cgi?id=56882
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.13.