platform/win32.c
changeset 448 11fb9dcda01d
parent 427 c38ace41039f
child 467 99664d9842cb
equal deleted inserted replaced
447:305273988630 448:11fb9dcda01d
   123     {
   123     {
   124         retval[buflen] = '\0';  /* does API always null-terminate this? */
   124         retval[buflen] = '\0';  /* does API always null-terminate this? */
   125 
   125 
   126             /* make sure the string was not truncated. */
   126             /* make sure the string was not truncated. */
   127         if (__PHYSFS_platformStricmp(&retval[buflen - 4], ".exe") != 0)
   127         if (__PHYSFS_platformStricmp(&retval[buflen - 4], ".exe") != 0)
   128             __PHYSFS_setError(ERR_GOTMODFN_TRUNC);
   128             __PHYSFS_setError(ERR_GETMODFN_TRUNC);
   129         else
   129         else
   130         {
   130         {
   131             ptr = strrchr(retval, '\\');
   131             ptr = strrchr(retval, '\\');
   132             if (ptr == NULL)
   132             if (ptr == NULL)
   133                 __PHYSFS_setError(ERR_GETMODFN_NO_DIR);
   133                 __PHYSFS_setError(ERR_GETMODFN_NO_DIR);