* [PATCH] util/oslib-win32: Fixes Use _aligned_malloc for qemu_try_memalign
@ 2021-01-11 3:37 Yonggang Luo
0 siblings, 0 replies; only message in thread
From: Yonggang Luo @ 2021-01-11 3:37 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Yonggang Luo, Philippe Mathieu-Daudé,
Philippe Mathieu-Daudé, Stefan Weil
In commit dfbd0b873a85021c083d9b4b84630c3732645963, the use of
_aligned_malloc are called with wrong parameter order, fixed it.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
util/oslib-win32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/oslib-win32.c b/util/oslib-win32.c
index 83b8e89330..33af8e2506 100644
--- a/util/oslib-win32.c
+++ b/util/oslib-win32.c
@@ -59,7 +59,7 @@ void *qemu_try_memalign(size_t alignment, size_t size)
g_assert(size != 0);
g_assert(is_power_of_2(alignment));
- ptr = _aligned_malloc(alignment, size);
+ ptr = _aligned_malloc(size, alignment);
trace_qemu_memalign(alignment, size, ptr);
return ptr;
}
--
2.29.2.windows.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-11 3:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11 3:37 [PATCH] util/oslib-win32: Fixes Use _aligned_malloc for qemu_try_memalign Yonggang Luo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).