From ceb26b809bf1a88a5954fa38c91cf11b4781cd0d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 18 Nov 2011 19:26:42 +0100 Subject: [PATCH] wrc: Fix lookup of strings that contain a context. --- tools/wrc/po.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wrc/po.c b/tools/wrc/po.c index 1882d78cb88..ffb584f16c8 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 );