diff options
author | Szymon Tokarz <wsx22@o2.pl> | 2016-06-19 00:50:49 +0000 |
---|---|---|
committer | Szymon Tokarz <wsx22@o2.pl> | 2016-06-19 00:50:49 +0000 |
commit | 58613ba2100154117afdffe63853bbb95a2901da (patch) | |
tree | f6013a156869edd3549351cb91cce38556352c2e /protocols/Gadu-Gadu/src/core.cpp | |
parent | 7ca306fd83e41b3ee0e45f24c17bd2b04d0fe87e (diff) |
Gadu-Gadu protocol
Fix strerror related loging
- GG\libgadu code uses ansi logging (enabled only in debug mode) - use: as_strerror(errno) to properly override strerror(errno)
- use properly strerror, _tcserror, as_strerror, ws_strerror in GG code
git-svn-id: http://svn.miranda-ng.org/main/trunk@17008 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/core.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp index 4f8816fd7e..d7ad598eef 100644 --- a/protocols/Gadu-Gadu/src/core.cpp +++ b/protocols/Gadu-Gadu/src/core.cpp @@ -423,10 +423,10 @@ retry: }
}
if (!perror) {
- mir_sntprintf(error, TranslateT("Connection cannot be established. errno=%d: %s"),errno, strerror(errno));
+ mir_sntprintf(error, TranslateT("Connection cannot be established. errno=%d: %s"), errno, ws_strerror(errno));
perror = error;
}
- debugLogA("mainthread() (%x): %s", this, perror);
+ debugLog(_T("mainthread() (%x): %s"), this, perror);
if (getByte(GG_KEY_SHOWCERRORS, GG_KEYDEF_SHOWCERRORS))
showpopup(m_tszUserName, perror, GG_POPUP_ERROR | GG_POPUP_ALLOW_MSGBOX | GG_POPUP_ONCE);
|