Author: akhaldi
Date: Thu Dec 27 12:35:10 2012
New Revision: 58018
URL:
http://svn.reactos.org/svn/reactos?rev=58018&view=rev
Log:
[SETUPAPI]
* Fix allocating the required bytes in SetupGetFileCompressionInfoW. Brought to you by
Peter Hater (7element {at} mail [dot] bg)
CORE-6815 #resolve #comment Committed in r58018. Cheers ;)
Modified:
trunk/reactos/dll/win32/setupapi/misc.c
Modified: trunk/reactos/dll/win32/setupapi/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/misc.c?…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/misc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/misc.c [iso-8859-1] Thu Dec 27 12:35:10 2012
@@ -1448,7 +1448,7 @@
return ERROR_INVALID_PARAMETER;
ret = SetupGetFileCompressionInfoExA( source, NULL, 0, &required, NULL, NULL,
NULL );
- if (!(actual_name = MyMalloc( required ))) return ERROR_NOT_ENOUGH_MEMORY;
+ if (!(actual_name = MyMalloc( required*sizeof(WCHAR) ))) return
ERROR_NOT_ENOUGH_MEMORY;
ret = SetupGetFileCompressionInfoExA( source, actual_name, required, &required,
source_size, target_size, type );