summaryrefslogtreecommitdiff
path: root/plugins/ImportTXT/General.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ImportTXT/General.pas')
-rw-r--r--plugins/ImportTXT/General.pas8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/ImportTXT/General.pas b/plugins/ImportTXT/General.pas
index a57e497b0f..a27c64728a 100644
--- a/plugins/ImportTXT/General.pas
+++ b/plugins/ImportTXT/General.pas
@@ -458,14 +458,8 @@ begin
end;
function DBWriteByte(hContact: THandle; szModule: PAnsiChar; szSetting: PAnsiChar; val: byte): integer;
-var
- cws: TDBCONTACTWRITESETTING;
begin
- cws.szModule := szModule;
- cws.szSetting := szSetting;
- cws.value._type := DBVT_BYTE;
- cws.value.bVal := val;
- result := CallService(MS_DB_CONTACT_WRITESETTING, hContact, lParam(@cws));
+ result := db_set_b(hContact, szModule, szSetting, val);
end;
procedure SetLastPattern(lp: byte);