Fix return types of GetThreadDesktop and OpenDesktopA.