Alexandre Julliard : wrc: Fix lookup of strings that contain a context.

Alexandre Julliard julliard at winehq.org
Fri Nov 18 13:02:48 CST 2011


Module: wine
Branch: master
Commit: ceb26b809bf1a88a5954fa38c91cf11b4781cd0d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ceb26b809bf1a88a5954fa38c91cf11b4781cd0d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Nov 18 19:26:42 2011 +0100

wrc: Fix lookup of strings that contain a context.

---

 tools/wrc/po.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/wrc/po.c b/tools/wrc/po.c
index 1882d78..ffb584f 100644
--- a/tools/wrc/po.c
+++ b/tools/wrc/po.c
@@ -951,7 +951,7 @@ static const char *get_msgstr( const char *msgid, const char *context, int *foun
     while (min <= max)
     {
         pos = (min + max) / 2;
-        res = strcmp( get_mo_msgid(pos), msgid );
+        res = strcmp( get_mo_msgid(pos), id ? id : msgid );
         if (!res)
         {
             const char *str = get_mo_msgstr( pos );




More information about the wine-cvs mailing list