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.