Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--orc/orccompiler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/orc/orccompiler.c b/orc/orccompiler.c
index 23a1a84..63eee29 100644
--- a/orc/orccompiler.c
+++ b/orc/orccompiler.c
@@ -223,6 +223,9 @@ _set_virtual_protect (void * mem, size_t size, int code_protect)
char *msg;
DWORD old_protect;
+ /* No code, so we 'succeed' */
+ if (size == 0)
+ return TRUE;
if (!mem)
return FALSE;