From 80db0ed0b30764c1e85d9ffac12158f4dd6d316c Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Tue, 4 Mar 2008 17:19:15 +0000 Subject: [PATCH] Fix for amb1452 - ns_give_item was giving wrong items --- dlls/ns/AllocString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ns/AllocString.h b/dlls/ns/AllocString.h index ca7c6abc..b5134ba0 100644 --- a/dlls/ns/AllocString.h +++ b/dlls/ns/AllocString.h @@ -87,7 +87,7 @@ public: while (iter!=end) { - if (strcmp(str,(*iter)->c_str())) + if (strcmp(str, (*iter)->c_str()) == 0) { // String is already in the list, do not allocate it again return MAKE_STRING((*iter)->c_str());