Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 3b3501a

Browse files
[[ Merge 6.7.4-rc-1 ]] Fix compilation issues
1 parent 94616da commit 3b3501a

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

engine/src/deploy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ bool MCDeployWriteCapsule(const MCDeployParameters& p_params, MCDeployFileRef p_
396396
if (t_success)
397397
for(uint32_t i = 0; i < MCArrayGetCount(p_params.library) && t_success; i++)
398398
{
399-
MCValueRef t_value;
399+
MCValueRef t_val;
400400
/* UNCHECKED */ MCArrayFetchValueAtIndex(p_params.library, i + 1, t_val);
401-
t_success = MCDeployCapsuleDefine(t_capsule, kMCCapsuleSectionTypeLibrary, (MCStringRef)t_val);
401+
t_success = MCDeployCapsuleDefineString(t_capsule, kMCCapsuleSectionTypeLibrary, (MCStringRef)t_val);
402402
}
403403

404404
// Now add the externals, if any

engine/src/external.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,9 @@ MCExternal *MCExternal::Load(MCStringRef p_filename)
274274
{
275275
// AL-2015-02-10: [[ SB Inclusions ]] Load external using new module loading utility
276276
MCAutoPointer<char> t_filename_cstring;
277-
if (!MCStringConvertToCString(p_filename, *t_filename))
278-
return false;
277+
if (MCStringConvertToCString(p_filename, &t_filename_cstring))
278+
t_module = MCU_loadmodule(*t_filename_cstring);
279279

280-
t_module = MCU_loadmodule(*t_filename_cstring);
281280
if (t_module == NULL)
282281
t_success = false;
283282
}

engine/src/mode_standalone.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ bool MCStandaloneCapsuleCallback(void *p_self, const uint8_t *p_digest, MCCapsul
244244
{
245245
char *t_mapping;
246246
t_mapping = new char[p_length];
247-
if (IO_read_bytes(t_mapping, p_length, p_stream) != IO_NORMAL)
247+
if (IO_read(t_mapping, p_length, p_stream) != IO_NORMAL)
248248
{
249249
MCresult -> sets("failed to read library mapping");
250250
return false;

libexternal/src/external.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ void ShowImageByIdUTF8(const char *p_group, unsigned long p_id, int *r_success)
666666

667667
// ExternalV0, interface V3 from LiveCode 6.7.4 have no UTF-8 functions
668668
if (s_external_interface_version < 2 ||
669-
s_operations[OPEROPERATION_SHOW_IMAGE_BY_ID_UTF8] == NULL)
669+
s_operations[OPERATION_SHOW_IMAGE_BY_ID_UTF8] == NULL)
670670
{
671671
*r_success = EXTERNAL_FAILURE;
672672
return;

0 commit comments

Comments
 (0)