user32: Fix a memory allocation strategy.
commitcb0e4f5f4f7dc10a0933349ad780a11405cd736e
authorAkihiro Sagawa <sagawa.aki@gmail.com>
Mon, 19 Sep 2022 13:10:24 +0000 (19 22:10 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 19 Sep 2022 18:13:12 +0000 (19 20:13 +0200)
tree3d08024401bcee0ecb491792b97aa6cc1680a8af
parent548a6afccbc3a92050d651205f7b738e4ecf0211
user32: Fix a memory allocation strategy.

Otherwise, the function allocates a heap memory when prev_size is enough.
What is worse is that it returns the buffer untouched if the prev_size
is insufficient.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53703
dlls/user32/winproc.c