dlerror should not use errno
authorMarko Kreen <markokr@gmail.com>
Wed, 9 Sep 2009 18:42:21 +0000 (21:42 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 9 Sep 2009 18:42:21 +0000 (21:42 +0300)
usual/base_win32.h

index 3a19a637ee90050a11dd8f57a7c96270b6da8ee7..db7cfeca848da9ec7e8362f0643407052d99a106 100644 (file)
@@ -92,7 +92,7 @@ static inline int dlclose(void *hptr)
 
 static inline const char *dlerror(void)
 {
-       return strerror(errno);
+       return strerror(GetLastError());
 }
 
 #endif