mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=779826; fix Invalid size exception in DirectBufferAllocator (Android nightly bustage fix); r=snorp,kats
This commit is contained in:
parent
1b0ed1cf7a
commit
9fb7842237
@ -17,7 +17,7 @@ public final class DirectBufferAllocator {
|
||||
private DirectBufferAllocator() {}
|
||||
|
||||
public static ByteBuffer allocate(int size) {
|
||||
if (size <= 0 || (size % 4) != 0) {
|
||||
if (size <= 0) {
|
||||
throw new IllegalArgumentException("Invalid size " + size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user