mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-24 10:26:24 +00:00
printui: Use LocalFree for memory allocated by LocalAlloc (Coverity).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2c405c7468
commit
f1cf7a0218
|
@ -227,7 +227,7 @@ void WINAPI PrintUIEntryW(HWND hWnd, HINSTANCE hInst, LPCWSTR pCommand, DWORD nC
|
||||||
cx.nCmdShow = nCmdShow;
|
cx.nCmdShow = nCmdShow;
|
||||||
|
|
||||||
if ((pCommand) && (pCommand[0])) {
|
if ((pCommand) && (pCommand[0])) {
|
||||||
/* result is allocated with GlobalAlloc() */
|
/* result is allocated with LocalAlloc() */
|
||||||
cx.argv = CommandLineToArgvW(pCommand, &cx.argc);
|
cx.argv = CommandLineToArgvW(pCommand, &cx.argc);
|
||||||
TRACE("got %d args at %p\n", cx.argc, cx.argv);
|
TRACE("got %d args at %p\n", cx.argc, cx.argv);
|
||||||
|
|
||||||
|
@ -253,6 +253,6 @@ void WINAPI PrintUIEntryW(HWND hWnd, HINSTANCE hInst, LPCWSTR pCommand, DWORD nC
|
||||||
FIXME("dialog: Printer / The operation was not successful\n");
|
FIXME("dialog: Printer / The operation was not successful\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
GlobalFree(cx.argv);
|
LocalFree(cx.argv);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue