Browse Source

Check for non-zero instead of negative.

master
Andy Nguyen 1 year ago
parent
commit
b6c484fbda
  1. 4
      src/com/bdjb/jit/JitDefaultImpl.java

4
src/com/bdjb/jit/JitDefaultImpl.java

@ -86,13 +86,13 @@ public final class JitDefaultImpl extends AbstractJit { @@ -86,13 +86,13 @@ public final class JitDefaultImpl extends AbstractJit {
align(size + alignment - 1, PAGE_SIZE),
PROT_READ | PROT_WRITE | PROT_EXEC,
sharedHandle)
< 0) {
!= 0) {
throw new InternalError("sceKernelJitCreateSharedMemory failed");
}
if (sceKernelJitCreateAliasOfSharedMemory(
sharedHandle.get(), PROT_READ | PROT_WRITE, aliasHandle)
< 0) {
!= 0) {
throw new InternalError("sceKernelJitCreateAliasOfSharedMemory failed");
}

Loading…
Cancel
Save