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/ownerinfo.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/ownerinfo.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/ownerinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Gadu-Gadu/src/ownerinfo.cpp b/protocols/Gadu-Gadu/src/ownerinfo.cpp index 013256f92e..b51fd7caba 100644 --- a/protocols/Gadu-Gadu/src/ownerinfo.cpp +++ b/protocols/Gadu-Gadu/src/ownerinfo.cpp @@ -57,9 +57,9 @@ void __cdecl GGPROTO::remindpasswordthread(void *param) if (!(h = gg_remind_passwd3(rp->uin, rp->email, token.id, token.val, 0)))
{
TCHAR error[128];
- mir_sntprintf(error, TranslateT("Password could not be reminded because of error:\n\t%s (Error: %d)"), _tcserror(errno), errno);
+ mir_sntprintf(error, TranslateT("Password could not be reminded because of error:\n\t%s (Error: %d)"), ws_strerror(errno), errno);
MessageBox(NULL, error, m_tszUserName, MB_OK | MB_ICONSTOP);
- debugLogA("remindpasswordthread(): Password could not be reminded. errno=%d: %s", errno, strerror(errno));
+ debugLog(_T("remindpasswordthread(): Password could not be reminded. errno=%d: %s"), errno, ws_strerror(errno));
}
else
{
|