summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blitter/ntapi_blt_alloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/blitter/ntapi_blt_alloc.c b/src/blitter/ntapi_blt_alloc.c
index 5508166..92a84e9 100644
--- a/src/blitter/ntapi_blt_alloc.c
+++ b/src/blitter/ntapi_blt_alloc.c
@@ -37,7 +37,10 @@ int32_t __fastcall __ntapi_blt_alloc(
size_t ptrs,i;
/* alignment */
- if ((params->block_size % sizeof(uintptr_t)) || (params->block_count % sizeof(uintptr_t)))
+ if (params->block_count % sizeof(uintptr_t))
+ return NT_STATUS_INVALID_PARAMETER;
+
+ else if (!params->region && (params->block_size % sizeof(uintptr_t)))
return NT_STATUS_INVALID_PARAMETER;
/* blt control block allocation */