summaryrefslogtreecommitdiff
path: root/plugins/MirandaNGHistoryToDB/Database.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-30 12:16:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-30 12:16:44 +0000
commit25ec54ea27a7099f33573b260a620ed7273176fe (patch)
tree1810a0cb35d23deeed9ccdaf0ab276a4022f9a41 /plugins/MirandaNGHistoryToDB/Database.pas
parenta546606709e6bb72e01eb38b2c8c8756608fd5d6 (diff)
- db_set_blob used everywhere for writing blobs
- DBCONTACTWRITESETTING left only in the event handlers git-svn-id: http://svn.miranda-ng.org/main/trunk@5191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaNGHistoryToDB/Database.pas')
-rw-r--r--plugins/MirandaNGHistoryToDB/Database.pas8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/MirandaNGHistoryToDB/Database.pas b/plugins/MirandaNGHistoryToDB/Database.pas
index 2b5e03b647..e12d340c23 100644
--- a/plugins/MirandaNGHistoryToDB/Database.pas
+++ b/plugins/MirandaNGHistoryToDB/Database.pas
@@ -323,14 +323,8 @@ begin
end;
function WriteDBInt(const hContact: THandle; const Module,Param: AnsiString; Value: Integer): Integer;
-var
- cws: TDBCONTACTWRITESETTING;
begin
- cws.szModule := PAnsiChar(Module);
- cws.szSetting := PAnsiChar(Param);
- cws.value._type := DBVT_DWORD;
- cws.value.dVal := Value;
- Result := CallService(MS_DB_CONTACT_WRITESETTING, hContact, lParam(@cws));
+ Result := db_set_dw(hContact, PAnsiChar(Module), PAnsiChar(Param), Value);
end;
function WriteDBStr(const Module,Param: AnsiString; Value: AnsiString): Integer;