Commit f1cf7a02 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

printui: Use LocalFree for memory allocated by LocalAlloc (Coverity).

parent 2c405c74
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment