added AttributeError and cosmetic adjustment to winapi
2 files changed