diff --git a/hook_special.c b/hook_special.c index 92b99fe..162a2b7 100644 --- a/hook_special.c +++ b/hook_special.c @@ -387,9 +387,11 @@ HOOKDEF_NOTAIL(WINAPI, JsEval, #else p = (PUCHAR)scriptobj[4 * Index - 2]; - jsbuf = *(PWCHAR *)(p + 8); - if (jsbuf) - LOQ_ntstatus("browser", "u", "Javascript", jsbuf); + if (p) { + jsbuf = *(PWCHAR *)(p + 8); + if (jsbuf) + LOQ_ntstatus("browser", "u", "Javascript", jsbuf); + } return ret; #endif