[Groonga-commit] groonga/groonga at 311649d [master] windows: fix wrong error code way

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 14 22:24:55 JST 2015


Kouhei Sutou	2015-01-14 22:24:55 +0900 (Wed, 14 Jan 2015)

  New Revision: 311649d114d90712d8cef6d1ba5133e221ede39b
  https://github.com/groonga/groonga/commit/311649d114d90712d8cef6d1ba5133e221ede39b

  Message:
    windows: fix wrong error code way

  Modified files:
    lib/error.c

  Modified: lib/error.c (+1 -1)
===================================================================
--- lib/error.c    2015-01-14 19:13:38 +0900 (4fb1270)
+++ lib/error.c    2015-01-14 22:24:55 +0900 (0d9a425)
@@ -28,7 +28,7 @@ const char *
 grn_current_error_message(void)
 {
 # define ERROR_MESSAGE_BUFFER_SIZE 4096
-  int error_code = WSAGetLastError();
+  int error_code = GetLastError();
   static char message[ERROR_MESSAGE_BUFFER_SIZE];
 
   FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM |
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index