wine/dlls/oleaut32 typelib.c

Dmitry Timoshkov dmitry at baikal.ru
Fri Aug 3 23:49:20 CDT 2001


"Alexandre Julliard" <julliard at winehq.com> wrote:

> Log message:
> Malte Starostik <malte at 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.





More information about the wine-devel mailing list