[Bug 33715] freopen produces empty file when applied to stdout (regression from wine-1.5.19 to wine-1.5.31)