[PATCH] user32: Fix RealGetWindowClass() to return what it's supposed to for same process windows
Dmitry Timoshkov
dmitry at baikal.ru
Tue Feb 18 01:42:39 CST 2014
Nikolay Sivov <nsivov at codeweavers.com> wrote:
> + else if (ptr->builtin_type != -1)
> + {
> + const struct builtinclass_name *classname = &builtinclass_names[ptr->builtin_type];
> + ret = min( count, classname->len ) - 1;
> + memcpy( buffer, classname->nameA, ret );
> + buffer[ret] = 0;
> + }
In case of count = 0 this code will overwrite random data.
--
Dmitry.
More information about the wine-devel
mailing list