https://bugs.winehq.org/show_bug.cgi?id=53035
Bug ID: 53035 Summary: Out-GridView (when winversion >win7) is broken since 182feddd4b02e83f3c69863bc2e6e63945eb2df1 Product: Wine Version: 7.9 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, regression Severity: normal Priority: P2 Component: dwmapi Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com CC: jzeng@codeweavers.com Regression SHA1: 182feddd4b02e83f3c69863bc2e6e63945eb2df1 Distribution: ---
Since the mentioned commit now an "Unhandled division by zero" is encountered when trying to display Out-GridView in Powershell Core; (the DwmGetCompositionTiming is apparently only called when winversion > win7)
Maybe returning a non-zero value in one of the DWM_TIMING_INFO members is enough to fix this, but i haven`t tested
crash: wine: Unhandled division by zero at address 00000000243E54D3 (thread 0158), starting debugger...
Steps to reproduce: 1. Install https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell...
2. Set windows version to win10 (or win81)
3. Then do for example:
'wine pwsh -c Get-Process | Out-gridview'
(Note: the backslash is only needed to escape the pipe operator in bash)
Workaround for now: disable dwmapi, makes it work again