From: Guillaume Friloux Date: Fri, 30 Jan 2015 13:09:34 +0000 (+0100) Subject: ecore_con: fix use of FormatMessage for error reporting on windows. X-Git-Tag: v1.14.0-alpha1~533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=388f8fbcaad7ead8b919ee256dfd195b404eef27;p=platform%2Fupstream%2Fefl.git ecore_con: fix use of FormatMessage for error reporting on windows. @fix --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 75a23d2..48c8416 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) LPTSTR s; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | - FORMAT_MESSAGE_FROM_SYSTEM | - FORMAT_MESSAGE_FROM_STRING, - NULL, WSAGetLastError(), (DWORD)NULL, s, 0, NULL); + FORMAT_MESSAGE_FROM_SYSTEM, + NULL, WSAGetLastError(), + MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), + (LPTSTR)&s, 0, NULL); ecore_con_event_server_error(obj, (char *)s); free(s); _ecore_con_server_kill(obj);