mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 09:21:31 +00:00
[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 ;) svn path=/trunk/; revision=58018
This commit is contained in:
parent
b2b4d4f502
commit
69f9dc84ad
|
@ -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 ))) 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 );
|
||||
|
|
Loading…
Reference in a new issue