Fix parsing '{' char.

This commit is contained in:
Jacek Caban 2005-11-18 12:04:53 +00:00 committed by Alexandre Julliard
parent efff88b834
commit e1b644b439
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ static HRESULT get_word(LPCOLESTR *str, strbuf *buf)
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 *pstr, HKEY parent_key, strbuf *buf, BOO
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;