Home | Info | Community | Development | myReactOS | Contact Us
[inline, private]
Definition at line 231 of file statreg.h.
Referenced by do_preprocess(), do_process_key(), and get_word().
{ LPOLESTR newBuffer; if (len == -1) len = lstrlenW(str); if (buf->len + len + 1 >= buf->alloc) { buf->alloc = (buf->len + len) * 2; newBuffer = reinterpret_cast<LPOLESTR>(HeapReAlloc(GetProcessHeap(), 0, buf->str, buf->alloc * sizeof(WCHAR))); if (newBuffer == NULL) return E_OUTOFMEMORY; buf->str = newBuffer; } memcpy(buf->str + buf->len, str, len * sizeof(OLECHAR)); buf->len += len; buf->str[buf->len] = '\0'; return S_OK; }