mmsystem.dll16: Fix argument order in GlobalAlloc16 call.
Sebastian Lackner
sebastian at fds-team.de
Wed Feb 10 01:14:55 CST 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
Luckily the GMEM_* constants were bigger than sizeof(.), so this was probably never a problem.
dlls/mmsystem.dll16/mmsystem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mmsystem.dll16/mmsystem.c b/dlls/mmsystem.dll16/mmsystem.c
index fdf1318..d90240d 100644
--- a/dlls/mmsystem.dll16/mmsystem.c
+++ b/dlls/mmsystem.dll16/mmsystem.c
@@ -1943,7 +1943,7 @@ LRESULT WINAPI mmThreadCreate16(FARPROC16 fpThreadAddr, LPHANDLE16 lpHndl, DWORD
TRACE("(%p, %p, %08x, %08x)!\n", fpThreadAddr, lpHndl, dwPmt, dwFlags);
- hndl = GlobalAlloc16(sizeof(WINE_MMTHREAD), GMEM_SHARE|GMEM_ZEROINIT);
+ hndl = GlobalAlloc16(GMEM_SHARE|GMEM_ZEROINIT, sizeof(WINE_MMTHREAD));
if (hndl == 0) {
ret = 2;
--
2.7.0
More information about the wine-patches
mailing list