A terrible fix of WinFlag()