mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-23 01:12:18 -05:00
Check for non-zero instead of negative.
This commit is contained in:
parent
f480a063ab
commit
b6c484fbda
@ -86,13 +86,13 @@ public final class JitDefaultImpl extends AbstractJit {
|
|||||||
align(size + alignment - 1, PAGE_SIZE),
|
align(size + alignment - 1, PAGE_SIZE),
|
||||||
PROT_READ | PROT_WRITE | PROT_EXEC,
|
PROT_READ | PROT_WRITE | PROT_EXEC,
|
||||||
sharedHandle)
|
sharedHandle)
|
||||||
< 0) {
|
!= 0) {
|
||||||
throw new InternalError("sceKernelJitCreateSharedMemory failed");
|
throw new InternalError("sceKernelJitCreateSharedMemory failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sceKernelJitCreateAliasOfSharedMemory(
|
if (sceKernelJitCreateAliasOfSharedMemory(
|
||||||
sharedHandle.get(), PROT_READ | PROT_WRITE, aliasHandle)
|
sharedHandle.get(), PROT_READ | PROT_WRITE, aliasHandle)
|
||||||
< 0) {
|
!= 0) {
|
||||||
throw new InternalError("sceKernelJitCreateAliasOfSharedMemory failed");
|
throw new InternalError("sceKernelJitCreateAliasOfSharedMemory failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user