Fixed bug #746
Fixed freeze when trying to memset with 0 length --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403757
This commit is contained in:
parent
e0fc48cf28
commit
0add77f02c
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ do { \
|
||||||
unsigned _n = (_count + 3) / 4; \
|
unsigned _n = (_count + 3) / 4; \
|
||||||
Uint32 *_p = (Uint32 *)(dst); \
|
Uint32 *_p = (Uint32 *)(dst); \
|
||||||
Uint32 _val = (val); \
|
Uint32 _val = (val); \
|
||||||
|
if (len == 0) break; \
|
||||||
switch (_count % 4) { \
|
switch (_count % 4) { \
|
||||||
case 0: do { *_p++ = _val; \
|
case 0: do { *_p++ = _val; \
|
||||||
case 3: *_p++ = _val; \
|
case 3: *_p++ = _val; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue