--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402489
This commit is contained in:
Sam Lantinga 2007-07-11 14:51:49 +00:00
parent e6e24a41f2
commit a65843c05a
2 changed files with 3 additions and 4 deletions

View file

@ -59,7 +59,7 @@ win32_file_open(SDL_RWops * context, const char *filename, const char *mode)
if (!context)
return -1; /* failed (invalid call) */
context->hidden.win32io.h = INVALID_HANDLE_VALUE; /* mark this as unusable */
context->hidden.win32io.h = INVALID_HANDLE_VALUE; /* mark this as unusable */
context->hidden.win32io.buffer.data = NULL;
context->hidden.win32io.buffer.size = 0;
context->hidden.win32io.buffer.left = 0;
@ -82,12 +82,12 @@ win32_file_open(SDL_RWops * context, const char *filename, const char *mode)
if (!r_right && !w_right) /* inconsistent mode */
return -1; /* failed (invalid call) */
context->hidden.win32io.buffer.data = (char *)SDL_malloc(READAHEAD_BUFFER_SIZE);
context->hidden.win32io.buffer.data =
(char *) SDL_malloc(READAHEAD_BUFFER_SIZE);
if (!context->hidden.win32io.buffer.data) {
SDL_OutOfMemory();
return -1;
}
#ifdef _WIN32_WCE
{
size_t size = SDL_strlen(filename) + 1;

View file

@ -435,4 +435,3 @@ void Color565DitherYV12MMX1X( int *colortab, Uint32 *rgb_2_pix,
#endif /* GCC3 i386 inline assembly */
/* vi: set ts=4 sw=4 expandtab: */