Commit b33c3ef94872e13e84bb8a195d2675f954c75547

Con Kolivas 2014-02-06T14:00:58

Check for when errno is set on windows as well as the windows variant for errors.