mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[WINESYNC] setupapi: Fix buffer overflow in SetupGetFileCompressionInfoW.
wine commit id b8c42020a98e3a5f486cbd03ef80302d6d605871 by Thomas Faber <thomas.faber@reactos.org>
SYNC NOTE: Already in ReactOS but reformatted following Wine.
See commit dcb9fa585
(r58019)
Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
This commit is contained in:
parent
7aad3cb7fc
commit
adf9ac9cae
2 changed files with 3 additions and 2 deletions
|
@ -1579,7 +1579,8 @@ 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*sizeof(WCHAR) ))) 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 );
|
||||
|
|
|
@ -5,4 +5,4 @@ files:
|
|||
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
||||
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
||||
tags:
|
||||
wine: 8d854a4830776aaacb70161709db315d54eb77f0
|
||||
wine: b8c42020a98e3a5f486cbd03ef80302d6d605871
|
||||
|
|
Loading…
Reference in a new issue