diff options
Diffstat (limited to 'source4/scripting/ejs/mprutil.c')
-rw-r--r-- | source4/scripting/ejs/mprutil.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/scripting/ejs/mprutil.c b/source4/scripting/ejs/mprutil.c index 748f28c681..657078e7c7 100644 --- a/source4/scripting/ejs/mprutil.c +++ b/source4/scripting/ejs/mprutil.c @@ -357,14 +357,15 @@ void mprSetPtrChild(struct MprVar *v, const char *propname, const void *p) */ void *mprGetPtr(struct MprVar *v, const char *propname) { - NTSTATUS status = mprGetVar(&v, propname); - if (!NT_STATUS_IS_OK(status)) { + struct MprVar *val; + val = mprGetProperty(v, propname, NULL); + if (val == NULL) { return NULL; } - if (v->type != MPR_TYPE_PTR) { + if (val->type != MPR_TYPE_PTR) { return NULL; } - return v->ptr; + return val->ptr; } /* |