Fixing ShExp use (0 means true)
This commit is contained in:
Родитель
5542344a17
Коммит
9fbb0864d4
|
@ -355,7 +355,7 @@ PRInt32 nsZipArchive::FindNext( nsZipFind* aFind, char * aBuf, PRUint16 aSize )
|
|||
else if ( aFind->mPattern == 0 )
|
||||
found = PR_TRUE; // always match
|
||||
else if ( aFind->mRegExp )
|
||||
found = XP_RegExpMatch( item->name, aFind->mPattern, PR_FALSE );
|
||||
found = (XP_RegExpMatch( item->name, aFind->mPattern, PR_FALSE ) == MATCH);
|
||||
else
|
||||
found = ( PL_strcmp( item->name, aFind->mPattern ) == 0 );
|
||||
}
|
||||
|
|
|
@ -63,9 +63,13 @@ typedef unsigned char PRUint8;
|
|||
#define INVALID_SXP -1
|
||||
#define NON_SXP -2
|
||||
#define VALID_SXP 1
|
||||
#define MATCH 0
|
||||
#define NOMATCH 1
|
||||
#define ABORTED -1
|
||||
|
||||
#define PR_RDONLY "rb"
|
||||
#define PR_SEEK_SET SEEK_SET
|
||||
|
||||
#define XP_RegExpValid(a) NON_SXP
|
||||
#define XP_RegExpMatch(a,b,c) PR_FALSE
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче