win32-console-wrapper: Fix heap corruption

FUCK the Windows API.