ATL: Fix parsing '{' char

Jacek Caban jacek at codeweavers.com
Thu Nov 17 08:29:28 CST 2005


Changelog:
    Cihan Altinay <cihan at uq.edu.au>
    Jacek Caban <jacek at codeweavers.com>
    Fix parsing '{' char.
-------------- next part --------------
Index: dlls/atl/registrar.c
===================================================================
RCS file: /home/wine/wine/dlls/atl/registrar.c,v
retrieving revision 1.15
diff -u -p -r1.15 registrar.c
--- dlls/atl/registrar.c	12 Sep 2005 20:29:16 -0000	1.15
+++ dlls/atl/registrar.c	17 Nov 2005 14:29:06 -0000
@@ -125,7 +125,7 @@ static HRESULT get_word(LPCOLESTR *str, 
         return S_OK;
     }
 
-    if(*iter == '{' || *iter == '}' || *iter == '=') {
+    if(*iter == '}' || *iter == '=') {
         strbuf_write(iter++, buf, 1);
     }else if(*iter == '\'') {
         iter2 = ++iter;
@@ -321,7 +321,7 @@ static HRESULT do_process_key(LPCOLESTR 
             break;
         }
 
-        if(key_type != IS_VAL && key_type != DO_DELETE && *iter == '{') {
+        if(key_type != IS_VAL && key_type != DO_DELETE && *iter == '{' && isspaceW(iter[1])) {
             hres = get_word(&iter, buf);
             if(FAILED(hres))
                 break;


More information about the wine-patches mailing list