https://bugs.winehq.org/show_bug.cgi?id=55501
Bug ID: 55501 Summary: Since commit 3174e86abedf633bcec4884f1303143a696b6062 PS Core (pwsh.exe) fails to start:Call to unimplemented function wldp.dll.WldpGetLockdownPolicy Product: Wine Version: 8.14 Hardware: x86-64 URL: https://github.com/PowerShell/PowerShell/releases/down load/v7.1.5/PowerShell-7.1.5-win-x64.msi OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com CC: bunglehead@gmail.com Distribution: Debian
Though technically spoken not a real regression, I added you (Nicolai) to the bugreport, hope you don't mind
The function is described here:
https://learn.microsoft.com/en-us/windows/win32/api/wldp/nf-wldp-wldpgetlock...
A simple stub returning S_OK is enough to fix this ( not sure what to set lockdownState to, just setting it to 0 seems to be ok)
(Sidenote: returning E_NOTIMPL allows the program also to start, but several errrors are reported in the console and maybe further functionality might fail)
Sidenote 2: I suspect Dotnet Core is also affected by this bug, but i didn't test that.