https://bugs.winehq.org/show_bug.cgi?id=56361
--- Comment #4 from yafoce6821@giratex.com --- (In reply to Louis Lenders from comment #3)
Created attachment 76105 [details] copy/paste (from findstr.c) hack
Hi, attached copy/paste (from findstr.c) hack, too lazy to clean it up. It makes something like "echo 'os get name' | wmic" work. If my previous comment is right, the patch should make it visible (FIXME:wmic) in the console what query wmic does. Could you attach console output after applying patch?
Compiled on 1b32ac45f821ee1fe06a3dc4f903a81a190216c7 (Release 9.3)
Output of unpatched version:
$ WINEPREFIX=~/wine/win10ltsc WINEARCH=win32 ./wine-src/wine start /d "C:\Geovision\PL9" "C:\Geovision\PL9\PL9.exe"
002c:fixme:ver:GetCurrentPackageId (0066FECC 00000000): stub 0034:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 0118:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 0130:fixme:ver:GetCurrentPackageId (0062FECC 00000000): stub wine: Unhandled page fault on read access to 00000004 at address 01563FCE (thread 0128), starting debugger... 0138:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 0140:fixme:ver:GetCurrentPackageId (0089FECC 00000000): stub 0148:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 003c:fixme:ver:GetCurrentPackageId (0068FECC 00000000): stub
Output of patched version
$ WINEPREFIX=~/wine/win10ltsc WINEARCH=win32 ./wine-src/wine start /d "C:\Geovision\PL9" "C:\Geovision\PL9\PL9.exe"
002c:fixme:ver:GetCurrentPackageId (0066FECC 00000000): stub 0034:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 0118:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 0130:fixme:wmic:wmain parsing L"bios get statu" 0130:fixme:ole:CoInitializeSecurity 00000000, -1, 00000000, 00000000, 0, 3, 00000000, 0, 00000000 stub 0130:fixme:ver:GetCurrentPackageId (0062FECC 00000000): stub 0138:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub wine: Unhandled page fault on read access to 00000004 at address 01563FCE (thread 0128), starting debugger... 0140:fixme:ver:GetCurrentPackageId (0089FECC 00000000): stub 0148:fixme:ver:GetCurrentPackageId (0067FECC 00000000): stub 003c:fixme:ver:GetCurrentPackageId (0068FECC 00000000): stub
Hope this helps