Update to the new dc_accounts_new() API

This commit is contained in:
link2xt 2023-07-31 16:56:32 +00:00 committed by bjoern
parent 6d1d33ad25
commit 1a13224ad2

View file

@ -227,7 +227,8 @@ JNIEXPORT jlong Java_com_b44t_messenger_DcAccounts_createAccountsCPtr(JNIEnv *en
{
CHAR_REF(osname);
CHAR_REF(dir);
jlong accountsCPtr = (jlong)dc_accounts_new(osnamePtr, dirPtr);
int writable = 1;
jlong accountsCPtr = (jlong)dc_accounts_new(dirPtr, writable);
CHAR_UNREF(dir);
CHAR_UNREF(osname);
return accountsCPtr;