Navigation Menu

Skip to content

Commit

Permalink
windows: fix wrong error code way
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 14, 2015
1 parent 723b420 commit 311649d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/error.c
Expand Up @@ -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 |
Expand Down

0 comments on commit 311649d

Please sign in to comment.