src/file/SDL_rwops.c
changeset 2173 26233707bc94
parent 2165 c2ffcc627701
child 2179 8b76cc268771
     1.1 --- a/src/file/SDL_rwops.c	Wed Jul 11 14:50:21 2007 +0000
     1.2 +++ b/src/file/SDL_rwops.c	Wed Jul 11 14:51:49 2007 +0000
     1.3 @@ -59,7 +59,7 @@
     1.4      if (!context)
     1.5          return -1;              /* failed (invalid call) */
     1.6  
     1.7 -    context->hidden.win32io.h = INVALID_HANDLE_VALUE; /* mark this as unusable */
     1.8 +    context->hidden.win32io.h = INVALID_HANDLE_VALUE;   /* mark this as unusable */
     1.9      context->hidden.win32io.buffer.data = NULL;
    1.10      context->hidden.win32io.buffer.size = 0;
    1.11      context->hidden.win32io.buffer.left = 0;
    1.12 @@ -82,12 +82,12 @@
    1.13      if (!r_right && !w_right)   /* inconsistent mode */
    1.14          return -1;              /* failed (invalid call) */
    1.15  
    1.16 -    context->hidden.win32io.buffer.data = (char *)SDL_malloc(READAHEAD_BUFFER_SIZE);
    1.17 +    context->hidden.win32io.buffer.data =
    1.18 +        (char *) SDL_malloc(READAHEAD_BUFFER_SIZE);
    1.19      if (!context->hidden.win32io.buffer.data) {
    1.20          SDL_OutOfMemory();
    1.21          return -1;
    1.22      }
    1.23 -
    1.24  #ifdef _WIN32_WCE
    1.25      {
    1.26          size_t size = SDL_strlen(filename) + 1;