From dcb9fa5856f54bdb91cb2eb6c08bb5a530739dcd Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 27 Dec 2012 12:42:31 +0000 Subject: [PATCH] * Addendum to r58018. Altered the wrong function. Also: "Should be sent to Wine (TM)" ;) svn path=/trunk/; revision=58019 --- reactos/dll/win32/setupapi/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/setupapi/misc.c b/reactos/dll/win32/setupapi/misc.c index e8e70211d85..aa44efdb4f4 100644 --- a/reactos/dll/win32/setupapi/misc.c +++ b/reactos/dll/win32/setupapi/misc.c @@ -1448,7 +1448,7 @@ DWORD WINAPI SetupGetFileCompressionInfoA( PCSTR source, PSTR *name, PDWORD sour 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 @@ DWORD WINAPI SetupGetFileCompressionInfoW( PCWSTR source, PWSTR *name, PDWORD so 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 );