https://bugs.winehq.org/show_bug.cgi?id=50026
Bug ID: 50026 Summary: Powershell Core errors (in win10 mode) with: Attempting to perform the Start operation on the 'FileSystem' provider failed. Unable to find an entry point named 'RtlQueryProcessPlaceholderCompatibilityMode' in DLL 'ntd ll.dll'. Product: Wine Version: 5.19 Hardware: x86-64 URL: https://github.com/PowerShell/PowerShell/releases/down load/v7.0.3/PowerShell-7.0.3-win-x64.msi OS: Linux Status: NEW Keywords: download, patch Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Regression SHA1: download Distribution: Debian
Created attachment 68458 --> https://bugs.winehq.org/attachment.cgi?id=68458 patch with stub
This happens on every command if win10 version is set, i.e.
wine pwsh.exe -c Write-Host "Hello"
Attempting to perform the Start operation on the 'FileSystem' provider failed. Unable to find an entry point named 'RtlQueryProcessPlaceholderCompatibilityMode' in DLL 'ntdll.dll'.
Though it continues happily further and the command(s) work, this actually prevents Waves Central from starting in win10 mode
I`ll send attached patch (that fixes this) later.
Relevant code from Powershell Core:
#if !UNIX // The placeholder mode management APIs Rtl(Set|Query)(Process|Thread)PlaceholderCompatibilityMode // are only supported starting with Windows 10 version 1803 (build 17134) Version minBuildForPlaceHolderAPIs = new Version(10, 0, 17134, 0); if (Environment.OSVersion.Version >= minBuildForPlaceHolderAPIs) { // let's be safe, don't change the PlaceHolderCompatibilityMode if the current one is not what we expect if (NativeMethods.PHCM_DISGUISE_PLACEHOLDER == NativeMethods.RtlQueryProcessPlaceholderCompatibilityMode()) {
NativeMethods.RtlSetProcessPlaceholderCompatibilityMode(NativeMethods.PHCM_EXPOSE_PLACEHOLDERS); } } #endif
https://bugs.winehq.org/show_bug.cgi?id=50026
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- patch sent: https://www.winehq.org/pipermail/wine-devel/2020-October/175786.html
Additional info: The following command fails in win10 mode due to missing stub:
wine pwsh -c "(Get-PSDrive C).Free"
Attempting to perform the Start operation on the 'FileSystem' provider failed. Unable to find an entry point named 'RtlQueryProcessPlaceholderCompatibilityMode' in DLL 'ntdll.dll'. Get-PSDrive: Cannot find drive. A drive with the name 'C' does not exist.
With the patch (stub) it reports correctly:
wine pwsh -c "(Get-PSDrive C).Free" 7910072320
https://bugs.winehq.org/show_bug.cgi?id=50026
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1|download |
https://bugs.winehq.org/show_bug.cgi?id=50026
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Powershell Core errors (in |Powershell Core needs |win10 mode) with: |ntdll.RtlQueryProcessPlaceh |Attempting to perform the |olderCompatibilityMode when |Start operation on the |run in win10 mode |'FileSystem' provider | |failed. Unable to find an | |entry point named | |'RtlQueryProcessPlaceholder | |CompatibilityMode' in DLL | |'ntd ll.dll'. |
https://bugs.winehq.org/show_bug.cgi?id=50026
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |a5a402a003fd9512b065f67ce89 | |30ff7cee96d67 Status|NEW |STAGED
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi, this was added to Staging a month ago
Regards
https://bugs.winehq.org/show_bug.cgi?id=50026
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|a5a402a003fd9512b065f67ce89 |https://github.com/wine-sta |30ff7cee96d67 |ging/wine-staging/tree/mast | |er/patches/ntdll-RtlQueryPr | |ocessPlaceholderCompatibili | |tyMode
https://bugs.winehq.org/show_bug.cgi?id=50026
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1a02b3f1c6dbe1cb342f7e90661 | |16eba9bcf6c85 Status|STAGED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi, fixed by 1a02b3f1c6dbe1cb342f7e9066116eba9bcf6c85
Thanks Zebediah for sending upstream (from Staging)
Following command needed by Waves Central now works correctly in win10 mode:
wine pwsh -c "(Get-PSDrive C).Free"
Output: 6979383296
https://bugs.winehq.org/show_bug.cgi?id=50026
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.8.
https://bugs.winehq.org/show_bug.cgi?id=50026
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://github.com/PowerShe |https://web.archive.org/web |ll/PowerShell/releases/down |/20201219231422/https://git |load/v7.0.3/PowerShell-7.0. |hub.com/PowerShell/PowerShe |3-win-x64.msi |ll/releases/download/v7.0.3 | |/PowerShell-7.0.3-win-x64.m | |si CC| |focht@gmx.net