mirror of
https://github.com/yawut/SDL.git
synced 2026-10-03 05:36:43 -05:00
Fixed bug #746
Fixed freeze when trying to memset with 0 length --HG-- branch : SDL-1.2
This commit is contained in:
@@ -259,6 +259,7 @@ do { \
|
||||
unsigned _n = (_count + 3) / 4; \
|
||||
Uint32 *_p = (Uint32 *)(dst); \
|
||||
Uint32 _val = (val); \
|
||||
if (len == 0) break; \
|
||||
switch (_count % 4) { \
|
||||
case 0: do { *_p++ = _val; \
|
||||
case 3: *_p++ = _val; \
|
||||
|
||||
Reference in New Issue
Block a user