[PATCH 0/1] MR6697: winex11.drv: GetClipboardFormatNameW size is in characters not bytes
Signed-off-by: Marcus Meissner <marcus(a)jet.franken.de> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6697
From: Marcus Meissner <marcus(a)jet.franken.de> Signed-off-by: Marcus Meissner <marcus(a)jet.franken.de> --- dlls/winex11.drv/xdnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/xdnd.c b/dlls/winex11.drv/xdnd.c index 174b764aa63..1391c6f0bd5 100644 --- a/dlls/winex11.drv/xdnd.c +++ b/dlls/winex11.drv/xdnd.c @@ -76,7 +76,7 @@ static const char *debugstr_format( int format ) if (CF_PRIVATEFIRST <= format && format <= CF_PRIVATELAST) return "some private object"; if (CF_GDIOBJFIRST <= format && format <= CF_GDIOBJLAST) return "some GDI object"; - GetClipboardFormatNameW( format, buffer, sizeof(buffer) ); + GetClipboardFormatNameW( format, buffer, ARRAY_SIZE(buffer) ); return debugstr_w( buffer ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6697
This merge request was closed by Alexandre Julliard. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6697
Superseded by 0bfdac7f6585f9bfce1d37335f53d2ed307d073b. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6697#note_87063
participants (3)
-
Alexandre Julliard (@julliard) -
Marcus Meissner -
Marcus Meissner (@msmeissn)