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:
Fabian Maurer 2022-04-23 20:17:24 +02:00 committed by Alexandre Julliard
parent 2c405c7468
commit f1cf7a0218
1 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ void WINAPI PrintUIEntryW(HWND hWnd, HINSTANCE hInst, LPCWSTR pCommand, DWORD nC
cx.nCmdShow = nCmdShow;
if ((pCommand) && (pCommand[0])) {
/* result is allocated with GlobalAlloc() */
/* result is allocated with LocalAlloc() */
cx.argv = CommandLineToArgvW(pCommand, &cx.argc);
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");
}
GlobalFree(cx.argv);
LocalFree(cx.argv);
}