mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix out of range check in ma_default_vfs_seek__win32
This commit is contained in:
+1
-1
@@ -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);
|
||||
} else if (ma_SetFilePointer != NULL) {
|
||||
/* No SetFilePointerEx() so restrict to 31 bits. */
|
||||
if (origin > 0x7FFFFFFF) {
|
||||
if (offset > 0x7FFFFFFF) {
|
||||
return MA_OUT_OF_RANGE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user