Fix for isFileInVirtualDir. Thanks to Peter Hartley for the patch.

git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@290 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez
2008-01-21 23:35:08 +00:00
parent f94b090c80
commit 1ab5221db5
3 changed files with 6 additions and 1 deletions

View File

@@ -745,7 +745,7 @@ isFileInVirtualDir( IN char *filePath )
return TRUE;
} else {
if( ( strncmp( pCurVirtualDir->dirName, filePath, webDirLen )
== 0 ) && ( filePath[webDirLen] == '/' ) )
== 0 ) && ( filePath[webDirLen] == '/' || filePath[webDirLen] == '\0' ) )
return TRUE;
}