Author: akhaldi
Date: Thu Dec 27 12:42:31 2012
New Revision: 58019
URL:
http://svn.reactos.org/svn/reactos?rev=58019&view=rev
Log:
* Addendum to r58018. Altered the wrong function. Also: "Should be sent to Wine
(TM)" ;)
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:42:31 2012
@@ -1448,7 +1448,7 @@
return ERROR_INVALID_PARAMETER;
ret = SetupGetFileCompressionInfoExA( source, NULL, 0, &required, NULL, NULL,
NULL );
- if (!(actual_name = MyMalloc( required*sizeof(WCHAR) ))) return
ERROR_NOT_ENOUGH_MEMORY;
+ if (!(actual_name = MyMalloc( required ))) return ERROR_NOT_ENOUGH_MEMORY;
ret = SetupGetFileCompressionInfoExA( source, actual_name, required, &required,
source_size, target_size, type );
@@ -1491,7 +1491,7 @@
return ERROR_INVALID_PARAMETER;
ret = SetupGetFileCompressionInfoExW( 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 = SetupGetFileCompressionInfoExW( source, actual_name, required, &required,
source_size, target_size, type );