mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 972951 - Make gcparam only accept positive integers. r=evilpie
This commit is contained in:
parent
e2e0fdc70e
commit
0ec4419ddc
@ -311,7 +311,10 @@ GCParameter(JSContext *cx, unsigned argc, Value *vp)
|
||||
}
|
||||
|
||||
uint32_t value;
|
||||
if (!ToUint32(cx, args[1], &value)) {
|
||||
if (!ToUint32(cx, args[1], &value))
|
||||
return false;
|
||||
|
||||
if (!value) {
|
||||
JS_ReportError(cx, "the second argument must be convertable to uint32_t "
|
||||
"with non-zero value");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user