ret will be allocated later at line 3295.
From: Zhiyi Zhang zzhang@codeweavers.com
ret will be allocated later at line 3295. --- dlls/wbemprox/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index b6bc1416d0c..80b5ee522b1 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -3284,7 +3284,7 @@ static WCHAR *build_pnp_device_id( const WCHAR *class, const WCHAR *product, con
static struct record_pnpentity *get_pnp_entities( UINT *count ) { - struct record_pnpentity *ret = malloc( 16 * sizeof(*ret) ), *tmp; + struct record_pnpentity *ret, *tmp; WCHAR class[MAX_PATH], product[MAX_PATH], instance[MAX_PATH]; DWORD nb_allocated = 16, i = 0, idx_enum = 0, idx_class = 0, idx_product = 0; HKEY key_enum, key_class, key_product, key_instance;
I submitted the same thing a few days ago !7279.
This merge request was closed by Zhiyi Zhang.