Commit ceb26b80 authored by Alexandre Julliard's avatar Alexandre Julliard

wrc: Fix lookup of strings that contain a context.

parent 418af7ed
...@@ -951,7 +951,7 @@ static const char *get_msgstr( const char *msgid, const char *context, int *foun ...@@ -951,7 +951,7 @@ static const char *get_msgstr( const char *msgid, const char *context, int *foun
while (min <= max) while (min <= max)
{ {
pos = (min + max) / 2; pos = (min + max) / 2;
res = strcmp( get_mo_msgid(pos), msgid ); res = strcmp( get_mo_msgid(pos), id ? id : msgid );
if (!res) if (!res)
{ {
const char *str = get_mo_msgstr( pos ); const char *str = get_mo_msgstr( pos );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment