diff options
| author | George Hazan <george.hazan@gmail.com> | 2015-05-22 16:04:17 +0000 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2015-05-22 16:04:17 +0000 | 
| commit | e2c2a1f5a84c6c9b705dc85c6a2dd1f97edd57e4 (patch) | |
| tree | ba79bdcede96f80039f8b88d2791f198b9ec2981 /plugins/AvatarHistory/src | |
| parent | f8e34b5f83f3ce5f39d541e9068b6b8cb6d92acd (diff) | |
T2Utf - handy replacement for ptrA<mir_utf8decodeT()>
git-svn-id: http://svn.miranda-ng.org/main/trunk@13758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory/src')
| -rw-r--r-- | plugins/AvatarHistory/src/AvatarHistory.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index 022754652f..dc1489ee7e 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -211,15 +211,15 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam)  		if (ContactEnabled(hContact, "LogToHistory", AVH_DEF_LOGTOHISTORY)) {
  			TCHAR rel_path[MAX_PATH];
  			PathToRelativeT(history_filename, rel_path);
 -			ptrA blob( mir_utf8encodeT(rel_path));
 +			T2Utf blob(rel_path);
  			DBEVENTINFO dbei = { sizeof(dbei) };
  			dbei.szModule = GetContactProto(hContact);
  			dbei.flags = DBEF_READ | DBEF_UTF;
  			dbei.timestamp = (DWORD) time(NULL);
  			dbei.eventType = EVENTTYPE_AVATAR_CHANGE;
 -			dbei.cbBlob = (DWORD) mir_strlen(blob) + 1;
 -			dbei.pBlob = (PBYTE)(char*)blob;
 +			dbei.cbBlob = (DWORD)mir_strlen(blob) + 1;
 +			dbei.pBlob = blob;
  			db_event_add(hContact, &dbei);
  		}
  	}
 | 
