25 Aug
2023
25 Aug
'23
11:17 a.m.
On Fri Aug 25 11:17:28 2023 +0000, David Kahurani wrote:
I'm looking at this and thinking that that `sizeof(T)` might not always give the correct size for the buffer, especially if the buffer is an array. I don't know what exactly is required but I thought I should note this. When this function is used, buffer is actually likely a pointer to an POD, so T is the POD type and sizeof(T) the correct size. It's just some convenience helpers for C++.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3607#note_43409