Răsfoiți Sursa

Took out a redundant memory failure check.

Ryan C. Gordon 24 ani în urmă
părinte
comite
525d015984
1 a modificat fișierele cu 0 adăugiri și 3 ștergeri
  1. 0 3
      platform/win32.c

+ 0 - 3
platform/win32.c

@@ -355,10 +355,7 @@ char *__PHYSFS_platformRealPath(const char *path)
          *  We'll need to check for "." and ".." dirs, though, just in case.
          */
     if ((path[0] == '\\') && (path[1] == '\\'))
-    {
-        BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
         strcpy(retval, path);
-    } /* if */
 
     else
     {