[PATCH 03/15] d3dx9: Use size of variable instead of type.
Nikolay Sivov
bunglehead at gmail.com
Wed Mar 23 06:00:31 CDT 2011
On 3/23/2011 13:49, Rico Schüller wrote:
> ---
> dlls/d3dx9_36/effect.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
> len = MultiByteToWideChar(CP_ACP, 0, srcfile, -1, NULL, 0);
> - srcfileW = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len * sizeof(WCHAR));
> + srcfileW = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len * sizeof(*srcfileW));
> MultiByteToWideChar(CP_ACP, 0, srcfile, -1, srcfileW, len);
No need to zero, if it will be filled with next call. This could a
subject of next patch of course.
More information about the wine-devel
mailing list