fixed allocation size in call to RtlAllocateHeap
authorRoyce Mitchell III <royce3@ev1.net>
Mon, 28 Jul 2003 19:38:58 +0000 (19:38 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Mon, 28 Jul 2003 19:38:58 +0000 (19:38 +0000)
svn path=/trunk/; revision=5304

reactos/lib/gdi32/misc/stubsa.c

index e9b118c..6b92df2 100644 (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 );