mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #1905 - Part 4b - Fix issue loading the profile and saving changes to the profile. Based on the following Mozilla bugs: 1659904, 1659905 and 1659077.
This commit is contained in:
parent
35ba45aa32
commit
7e63a3f440
5 changed files with 24 additions and 13 deletions
|
|
@ -6708,12 +6708,15 @@ PrepareCIF(JSContext* cx,
|
|||
if (!rtype)
|
||||
return false;
|
||||
|
||||
ffi_status status =
|
||||
ffi_prep_cif(&fninfo->mCIF,
|
||||
abi,
|
||||
fninfo->mFFITypes.length(),
|
||||
rtype,
|
||||
fninfo->mFFITypes.begin());
|
||||
ffi_status status;
|
||||
if (fninfo->mIsVariadic) {
|
||||
status = ffi_prep_cif_var(&fninfo->mCIF, abi, fninfo->mArgTypes.length(),
|
||||
fninfo->mFFITypes.length(), rtype,
|
||||
fninfo->mFFITypes.begin());
|
||||
} else {
|
||||
status = ffi_prep_cif(&fninfo->mCIF, abi, fninfo->mFFITypes.length(), rtype,
|
||||
fninfo->mFFITypes.begin());
|
||||
}
|
||||
|
||||
switch (status) {
|
||||
case FFI_OK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue