diff options
author | Guillaume Friloux <guillaume.friloux@gmail.com> | 2015-01-30 14:09:34 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-02-11 17:03:38 +0100 |
commit | 388f8fbcaad7ead8b919ee256dfd195b404eef27 (patch) | |
tree | 40a30bbf21bd1f01d841472558e4439a0e0ef9fb /src | |
parent | d6f08ba032bcbfcb2d563992c8e4f43c19612d35 (diff) |
ecore_con: fix use of FormatMessage for error reporting on windows.
@fix
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_con/ecore_con.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 75a23d2e54..48c84166af 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c | |||
@@ -2481,9 +2481,10 @@ _ecore_con_server_flush(Ecore_Con_Server *obj) | |||
2481 | LPTSTR s; | 2481 | LPTSTR s; |
2482 | 2482 | ||
2483 | FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | | 2483 | FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | |
2484 | FORMAT_MESSAGE_FROM_SYSTEM | | 2484 | FORMAT_MESSAGE_FROM_SYSTEM, |
2485 | FORMAT_MESSAGE_FROM_STRING, | 2485 | NULL, WSAGetLastError(), |
2486 | NULL, WSAGetLastError(), (DWORD)NULL, s, 0, NULL); | 2486 | MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), |
2487 | (LPTSTR)&s, 0, NULL); | ||
2487 | ecore_con_event_server_error(obj, (char *)s); | 2488 | ecore_con_event_server_error(obj, (char *)s); |
2488 | free(s); | 2489 | free(s); |
2489 | _ecore_con_server_kill(obj); | 2490 | _ecore_con_server_kill(obj); |