diff --git a/project/src/net/curl/CURLBindings.cpp b/project/src/net/curl/CURLBindings.cpp index 5b6b7d394..f6bf7e3ee 100644 --- a/project/src/net/curl/CURLBindings.cpp +++ b/project/src/net/curl/CURLBindings.cpp @@ -714,8 +714,11 @@ namespace lime { // writeBufferSize[easy_handle] = 0; writeBufferPosition[easy_handle] = 0; + vdynamic* pos = hl_alloc_dynamic (&hlt_i32); + pos->v.i = position; + curl_gc_mutex.Unlock (); - length = *((int*)writeCallback->Call (bytes, &position)); + length = *((int*)writeCallback->Call (bytes, pos)); curl_gc_mutex.Lock (); if (length == CURL_WRITEFUNC_PAUSE) {