Skip to content

Commit

Permalink
Use correct signature when calling into Kernel32 (CaffeineMC#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jellysquid3 authored Oct 31, 2023
1 parent 5103a34 commit 9687d7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void setEnvironmentVariable(String name, @Nullable String value) {
MemoryUtil.memUTF16(value, true, lpValueBuf);
}

JNI.callJJI(MemoryUtil.memAddress0(lpNameBuf), MemoryUtil.memAddressSafe(lpValueBuf), PFN_SetEnvironmentVariableW);
JNI.callPPI(MemoryUtil.memAddress0(lpNameBuf), MemoryUtil.memAddressSafe(lpValueBuf), PFN_SetEnvironmentVariableW);
}
}

Expand Down

0 comments on commit 9687d7b

Please sign in to comment.