shdocvw: [Patch 1/2] Implement URLSubRegQueryA [Resend]
Alexandre Julliard
julliard at winehq.org
Wed Oct 15 09:53:16 CDT 2008
Detlef Riekenberg <wine.dev at web.de> writes:
> + len = sizeof(buffer);
> + res = SHRegGetUSValueA(regpath, name, NULL, buffer, &len, FALSE, NULL, 0);
> + if (!res) {
> + lstrcpynA(out, buffer, outlen);
> + if (outlen > 0) {
> + out[min(outlen-1,len)] = '\0';
> + }
This doesn't look right. Why do you even need a separate buffer?
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list