Akihiro Sagawa : wrc: Don' t match a po message if a same msgid message is defined, but its msgctxt is null.

Alexandre Julliard julliard at winehq.org
Tue Feb 1 12:25:00 CST 2011


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

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Sun Jan 30 00:39:32 2011 +0900

wrc: Don't match a po message if a same msgid message is defined, but its msgctxt is null.

---

 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 d7aabc5..ef1e9f2 100644
--- a/tools/wrc/po.c
+++ b/tools/wrc/po.c
@@ -364,7 +364,7 @@ static po_message_t find_message( po_file_t po, const char *msgid, const char *m
     {
         if (strcmp( po_message_msgid( msg ), msgid )) continue;
         if (!msgctxt) break;
-        if (!(context = po_message_msgctxt( msg ))) break;
+        if (!(context = po_message_msgctxt( msg ))) continue;
         if (!strcmp( context, msgctxt )) break;
     }
     return msg;




More information about the wine-cvs mailing list