From f51995e13679a37851baef8e7f52f2d993cbc7c1 Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Tue, 13 Sep 2016 17:11:58 +0000
Subject: mode old database junk to die

git-svn-id: http://svn.miranda-ng.org/main/trunk@17291 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 protocols/GTalkExt/src/avatar.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'protocols/GTalkExt')

diff --git a/protocols/GTalkExt/src/avatar.cpp b/protocols/GTalkExt/src/avatar.cpp
index 84de3a28d8..36c6f4ff6a 100644
--- a/protocols/GTalkExt/src/avatar.cpp
+++ b/protocols/GTalkExt/src/avatar.cpp
@@ -33,7 +33,7 @@
 LPTSTR CreateAvaFile(HANDLE *hFile)
 {
 	wchar_t name[MAX_PATH + 2];
-	if (CallService(MS_DB_GETPROFILENAMEW, (WPARAM)_countof(name), (LPARAM)&name))
+	if (Profile_GetNameW(_countof(name), name))
 		return NULL;
 
 	wchar_t *p = wcsrchr(name, '.');
@@ -41,8 +41,7 @@ LPTSTR CreateAvaFile(HANDLE *hFile)
 		*p = 0;
 
 	wchar_t path[MAX_PATH + 2];
-	if (CallService(MS_DB_GETPROFILEPATHW, (WPARAM)_countof(path), (LPARAM)&path))
-		return NULL;
+	Profile_GetPathW(_countof(path), path);
 
 	wchar_t full[MAX_PATH + 2];
 	mir_snwprintf(full, AVA_FILE_NAME_FORMAT, path, name);
-- 
cgit v1.2.3