Closed jgdrg closed 4 months ago
That netapi.dll tries to talk to a dos driver which doesn't work under winevdm. I think that a replacement netapi.dll would be needed that calls win32 apis directly. Unfortunately, upstream wine doesn't have one.
Thanks for your response. As the application only calls one netapi function, I made a replacement netapi dll that calls the required win32 netapi functions, with some help from the Microsoft LAN manager programmer's reference (1990) . This seems to have sorted the issue.
Any chance you can share it?
I can, but beware its not my best work. How do you want me to share it?
However you want. Making a pr would be best although it's not my decision about accepting it. It's useful in my opinion to have a working starting point for other programs which use netapi.
Try the latest version first. Go here and click
Environment: THIS_BUILD_IS_RECOMMENDED__VCXPROJ_BUILD=1
->Artifacts 1
->zip
to download the latest version.Describe the bug When using a legacy third-party Windows 3.1 application, we found it was crashing when starting. After investigation it was found that the crash was occurring when netapi.dll was being loaded by the application.
Expected behavior Application doesn't not crash when loading netapi.dll
Screenshots SEGV message with test app. Working on XP
Environment (please complete the following information):
Additional context To replicate the issue more easily. I created a simple test application that loads the offending DLL. Testapp.zip contains the test binary, source (for ref) and netapi DLL. Copy into a folder and launch with Winedebug C:\Testapp>otvdm.exe testapp.exe
Testapp.zip
It is very helpful to provide a trace file if possible. Please note that this file contains detailed information about the program.