Fix out of range check in ma_default_vfs_seek__win32

This commit is contained in:
Chris Genova
2024-01-29 19:26:59 -05:00
committed by David Reid
parent c0afa7e621
commit aa57d052da
+1 -1
View File
@@ -59221,7 +59221,7 @@ static ma_result ma_default_vfs_seek__win32(ma_vfs* pVFS, ma_vfs_file file, ma_i
result = ma_SetFilePointerEx((HANDLE)file, liDistanceToMove, NULL, dwMoveMethod); result = ma_SetFilePointerEx((HANDLE)file, liDistanceToMove, NULL, dwMoveMethod);
} else if (ma_SetFilePointer != NULL) { } else if (ma_SetFilePointer != NULL) {
/* No SetFilePointerEx() so restrict to 31 bits. */ /* No SetFilePointerEx() so restrict to 31 bits. */
if (origin > 0x7FFFFFFF) { if (offset > 0x7FFFFFFF) {
return MA_OUT_OF_RANGE; return MA_OUT_OF_RANGE;
} }