https://bugs.winehq.org/show_bug.cgi?id=40875
Bug ID: 40875 Summary: ITHVNR does not work in wine Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: wareya@gmail.com Distribution: ---
Note: ITHVNR AND ITH ARE NOT THE SAME PROGRAM. ITH'S WINE BLOCKING CODE DOES NOT EXIST IN ITHVNR.
Via https://bugs.winehq.org/show_bug.cgi?id=40476 which was incorrectly closed as invalid (the report was about ITHVNR, not ITH)
Parts of original thread follow.
OP summary:
Program name: ITH-VNR Details: It's a hooking program that attaches itself to a running process. Used mainly to extract text at runtime from Japanese games (Visual Novels).
Download + Source code link: http://www.hongfire.com/forum/showthread.php/438331-ITHVNR-ITH-with-the-VNR-...
(There is an older version, but since this is the latest maintained one, posting this.)
It seems that Visual C++ Runtime 2013 is required.
Steps: 1. Create a clean 32-bit WINEPREFIX in, let's say ~/wine32. 2. Run winetricks vsrun2013 (to install the 2013 runtime x86 version). 3. Do env LANG=WINEDEBUG=warn+all WINEPREFIX=/home/user1/wine32 WINEARCH=win32 wine ITHVNR.exe
Result: It does not start at all. Same for the default 64-bit wine.
Culprit:
After some more poking around and MessageBox-driven debugging I've managed to find the issue. The IthInitSystemService() function fails when it tries to open the NT directory object \Sessions$session_id\BaseNamedObjects. On Wine \Sessions$session_id seems to be a symlink to \BaseNamedObjects, but on Windows the BaseNamedObjects directory obj is not linked to \Sessions$session_id, it's inside of it.
https://bugs.winehq.org/show_bug.cgi?id=40875
Mokou mokouthrowaway@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mokouthrowaway@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40875
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Ever confirmed|0 |1 Status|UNCONFIRMED |NEW URL| |http://www.hongfire.com/for | |um/showthread.php/438331-IT | |HVNR-ITH-with-the-VNR-engin | |e
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- I can confirm the program does not start but I don't understand the problem or the workaround. Is the workaround something we can do like in regedit?
Can you point in the source code which function fails?
https://bugs.winehq.org/show_bug.cgi?id=40875
--- Comment #2 from Mokou mokouthrowaway@gmail.com --- (In reply to Bruno Jesus from comment #1) The workaround has been posted in the previous bug report. Applying the Wine patch (https://bugs.winehq.org/attachment.cgi?id=54783) should make the application work.
Can you point in the source code which function fails? From Bug 40476: The process gets terminated because IthInitSystemService() returns FALSE (gui/main.cpp:246). IthInitSystemService() returns FALSE because it can't open the \Sessions$id\BaseNamedObjects NT dir obj (vnr/ithsys/ithsys.cc:828).
https://bugs.winehq.org/show_bug.cgi?id=40875
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 55033 --> https://bugs.winehq.org/attachment.cgi?id=55033 patch
https://bugs.winehq.org/show_bug.cgi?id=40875
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- Please read http://wiki.winehq.org/SubmittingPatches and send your patch to Wine.
https://bugs.winehq.org/show_bug.cgi?id=40875
S M compulsorylocales@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |compulsorylocales@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40875
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com Keywords| |source
https://bugs.winehq.org/show_bug.cgi?id=40875
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |84c3b8ae28fc799146f72a9dbc5 | |f38bb188df672 Status|NEW |RESOLVED CC| |infyquest@gmail.com
--- Comment #5 from Vijay Kamuju infyquest@gmail.com --- fixed by 84c3b8ae28fc799146f72a9dbc5f38bb188df672
https://bugs.winehq.org/show_bug.cgi?id=40875
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
https://bugs.winehq.org/show_bug.cgi?id=40875
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.16.
https://bugs.winehq.org/show_bug.cgi?id=40875
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x CC| |mstefani@redhat.com
https://bugs.winehq.org/show_bug.cgi?id=40875
--- Comment #7 from Michael Stefaniuc mstefani@redhat.com --- Remove 1.8.x target milestone from bugs that didn't make it into 1.8.x for one reason or another. This are all included in the stable 2.0 release.
https://bugs.winehq.org/show_bug.cgi?id=40875
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---