fixed allocation size in call to RtlAllocateHeap

svn path=/trunk/; revision=5304
This commit is contained in:
Royce Mitchell III 2003-07-28 19:38:58 +00:00
parent 0d53ee5681
commit c96f5dedff

View file

@ -1,4 +1,4 @@
/* $Id: stubsa.c,v 1.18 2003/07/28 19:37:13 royce Exp $
/* $Id: stubsa.c,v 1.19 2003/07/28 19:38:58 royce Exp $
*
* reactos/lib/gdi32/misc/stubs.c
*
@ -743,7 +743,7 @@ GetEnhMetaFileDescriptionA(
if ( lpszDescription && cchBuffer )
{
hHeap = RtlGetProcessHeap();
lpszDescriptionW = (LPWSTR)RtlAllocateHeap ( hHeap, 0, cchBuffer );
lpszDescriptionW = (LPWSTR)RtlAllocateHeap ( hHeap, 0, cchBuffer*sizeof(WCHAR) );
}
rc = W32kGetEnhMetaFileDescription ( hemf, cchBuffer, lpszDescriptionW );