Commit aa57d052 authored by Chris Genova's avatar Chris Genova Committed by David Reid

Fix out of range check in ma_default_vfs_seek__win32

parent c0afa7e6
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment