Proper check for Windows error.