"Alexandre Julliard" julliard@winehq.com wrote:
Log message: Malte Starostik malte@kde.org Implemented RegisterTypeLib.
Patch: http://cvs.winehq.com/patch.py?id=99686240431774649117142
+ if (res == S_OK && RegCreateKeyExA(key, "FLAGS", 0, NULL, 0, + KEY_WRITE, NULL, &subKey, NULL) == ERROR_SUCCESS) + { + CHAR buf[20]; + /* FIXME: is %u correct? */ + snprintf(buf, strlen(buf), "%u", attr->wLibFlags); ^^^^^^^^^^^ + if (RegSetValueExA(subKey, NULL, 0, REG_SZ, + buf, lstrlenA(buf) + 1) != ERROR_SUCCESS) + res = E_FAIL; + }
I'm sorry, it's late a bit. But anyway, instead of strlen() above should be sizeof(). -- Dmitry.