summaryrefslogtreecommitdiff
path: root/foreign_msvc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'foreign_msvc32.c')
-rw-r--r--foreign_msvc32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/foreign_msvc32.c b/foreign_msvc32.c
index 35b09db..3afbe20 100644
--- a/foreign_msvc32.c
+++ b/foreign_msvc32.c
@@ -170,7 +170,7 @@ static Status foreign_call(ForeignFnManager *ffmgr, FnExpr *fn, Type *ret_type,
possibly_static_assert(sizeof(double) == 8);
possibly_static_assert(sizeof(float) == 4);
FnPtr fn_ptr = foreign_get_fn_ptr(ffmgr, fn, call_where);
-
+ if (!fn_ptr) return false;
Word words[10];
Word *word = words;
char *type = (char *)arg_types;