From: Hans Leidekker hans@codeweavers.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57787 --- 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 8145ef08b2e..b6bc1416d0c 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -3320,7 +3320,7 @@ static struct record_pnpentity *get_pnp_entities( UINT *count ) if (++i > nb_allocated) { nb_allocated *= 2; - if ((tmp = realloc( ret, nb_allocated ))) ret = tmp; + if ((tmp = realloc( ret, nb_allocated * sizeof(*ret) ))) ret = tmp; else { while (--i)