platform/win32.c
changeset 615 53f0d8be2b39
parent 606 70cf47819dd2
child 651 cbe4ea4c7e8e
child 750 1a9776396bb6
equal deleted inserted replaced
614:fa120459dcac 615:53f0d8be2b39
   481     strcat(SearchPath, "*");
   481     strcat(SearchPath, "*");
   482 
   482 
   483     dir = FindFirstFile(SearchPath, &ent);
   483     dir = FindFirstFile(SearchPath, &ent);
   484     BAIL_IF_MACRO
   484     BAIL_IF_MACRO
   485     (
   485     (
   486         dir == PHYSFS_INVALID_HANDLE_VALUE,
   486         dir == INVALID_HANDLE_VALUE,
   487         win32strerror(), NULL
   487         win32strerror(), NULL
   488     );
   488     );
   489 
   489 
   490     do
   490     do
   491     {
   491     {
   748     fileHandle = CreateFile(fname, mode, FILE_SHARE_READ, NULL,
   748     fileHandle = CreateFile(fname, mode, FILE_SHARE_READ, NULL,
   749                             creation, FILE_ATTRIBUTE_NORMAL, NULL);
   749                             creation, FILE_ATTRIBUTE_NORMAL, NULL);
   750 
   750 
   751     BAIL_IF_MACRO
   751     BAIL_IF_MACRO
   752     (
   752     (
   753         fileHandle == PHYSFS_INVALID_HANDLE_VALUE,
   753         fileHandle == INVALID_HANDLE_VALUE,
   754         win32strerror(), NULL
   754         win32strerror(), NULL
   755     );
   755     );
   756 
   756 
   757     retval = malloc(sizeof (win32file));
   757     retval = malloc(sizeof (win32file));
   758     if (retval == NULL)
   758     if (retval == NULL)