@@ -96,7 +96,7 @@ LANGINFO *GetLangInfo ( char *language )
9696
9797 while ( item->langid != LANGID_UNKNOWN )
9898 {
99- if ( ! stricmp ( language, item->name ) )
99+ if ( stricmp ( language, item->name ) == 0 )
100100 {
101101 return item;
102102 }
@@ -330,7 +330,7 @@ BabylonText* TransDB::FindSubText ( OLECHAR *pattern, int item )
330330 while ( text )
331331 {
332332
333- if ( ! wcsnicmp ( text->Get (), pattern, 15 ))
333+ if ( wcsnicmp ( text->Get (), pattern, 15 ) == 0 )
334334 {
335335 if ( !item )
336336 {
@@ -692,7 +692,7 @@ BabylonText* BabylonLabel::FindText ( OLECHAR *find_text )
692692
693693 while ( txt )
694694 {
695- if ( ! wcscmp ( txt->Get (), find_text ))
695+ if ( wcscmp ( txt->Get (), find_text ) == 0 )
696696 {
697697 return txt;
698698 }
@@ -836,25 +836,25 @@ void BabylonLabel::AddToTree ( CTreeCtrl *tc, HTREEITEM parent, int changes
836836 txt = NextText ( sh );
837837 }
838838
839- if ( strcmp ( CommentSB (), " " ) )
839+ if ( strcmp ( CommentSB (), " " ) != 0 )
840840 {
841841 sprintf ( buffer, " COMMENT : %s" , CommentSB () );
842842 tc->InsertItem ( buffer, litem );
843843 }
844844
845- if ( strcmp ( ContextSB (), " " ) )
845+ if ( strcmp ( ContextSB (), " " ) != 0 )
846846 {
847847 sprintf ( buffer, " CONTEXT : %s" , ContextSB () );
848848 tc->InsertItem ( buffer, litem );
849849 }
850850
851- if ( strcmp ( SpeakerSB (), " " ) )
851+ if ( strcmp ( SpeakerSB (), " " ) != 0 )
852852 {
853853 sprintf ( buffer, " SPEAKER : %s" , SpeakerSB () );
854854 tc->InsertItem ( buffer, litem );
855855 }
856856
857- if ( strcmp ( ListenerSB (), " " ) )
857+ if ( strcmp ( ListenerSB (), " " ) != 0 )
858858 {
859859 sprintf ( buffer, " LISTENER: %s" , ListenerSB () );
860860 tc->InsertItem ( buffer, litem );
@@ -1341,7 +1341,7 @@ void BabylonText::AddToTree ( CTreeCtrl *tc, HTREEITEM parent, int changes
13411341 tc->InsertItem ( buffer, item );
13421342 }
13431343
1344- if ( strcmp ( WaveSB (), " " ) )
1344+ if ( strcmp ( WaveSB (), " " ) != 0 )
13451345 {
13461346 sprintf ( buffer, " WAVE : %s" , WaveSB () );
13471347 tc->InsertItem ( buffer, item );
@@ -1411,7 +1411,7 @@ void Translation::AddToTree ( CTreeCtrl *tc, HTREEITEM parent, int changes
14111411
14121412 item = tc->InsertItem ( buffer, parent );
14131413
1414- if ( strcmp ( CommentSB (), " " ) )
1414+ if ( strcmp ( CommentSB (), " " ) != 0 )
14151415 {
14161416 sprintf ( buffer, " COMMENT: %s" , CommentSB () );
14171417 tc->InsertItem ( buffer, item );
0 commit comments