src/file/SDL_rwops.c
changeset 8316 88f011703f39
parent 6430 48d519500f7e
child 8317 4eec049a8b7c
     1.1 --- a/src/file/SDL_rwops.c	Mon Oct 15 22:25:08 2012 -0400
     1.2 +++ b/src/file/SDL_rwops.c	Wed Oct 17 21:43:20 2012 -0400
     1.3 @@ -456,13 +456,16 @@
     1.4      {
     1.5      	#ifdef __APPLE__
     1.6      	FILE *fp = SDL_OpenFPFromBundleOrFallback(file, mode);
     1.7 +        #elif __WINRT__
     1.8 +        FILE *fp = NULL;
     1.9 +        fopen_s(&fp, file, mode);
    1.10          #else
    1.11      	FILE *fp = fopen(file, mode);
    1.12      	#endif
    1.13      	if (fp == NULL) {
    1.14              SDL_SetError("Couldn't open %s", file);
    1.15          } else {
    1.16 -            rwops = SDL_RWFromFP(fp, 1);
    1.17 +            rwops = SDL_RWFromFP(fp, SDL_TRUE);
    1.18          }
    1.19      }
    1.20  #else