Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
tantric committed Mar 15, 2012
1 parent fa47291 commit d84f753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/wiimc.cpp
Expand Up @@ -190,7 +190,10 @@ static void SaveLogToSD()

static ssize_t __out_write(struct _reent *r, int fd, const char *ptr, size_t len)
{
if (!gecko || !ptr || len <= 0)
if (!gecko || len == 0)
return len;

if(!ptr || len < 0)
return -1;

u32 level;
Expand Down

0 comments on commit d84f753

Please sign in to comment.