Commit 6672d268 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

Free the allocated command line string.

parent 1979ab3c
......@@ -44,7 +44,7 @@ typedef struct tagHHInfo
{
HH_WINTYPEW *pHHWinType;
HINSTANCE hInstance;
LPCWSTR szCmdLine;
LPWSTR szCmdLine;
DWORD dwNumTBButtons;
HWND hwndTabCtrl;
HFONT hFont;
......@@ -473,7 +473,7 @@ static BOOL HH_CreateViewer(HHInfo *pHHInfo)
return TRUE;
}
static HHInfo *HH_OpenHH(HINSTANCE hInstance, LPCWSTR szCmdLine)
static HHInfo *HH_OpenHH(HINSTANCE hInstance, LPWSTR szCmdLine)
{
HHInfo *pHHInfo = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(HHInfo));
......@@ -490,6 +490,7 @@ static void HH_Close(HHInfo *pHHInfo)
return;
HeapFree(GetProcessHeap(), 0, pHHInfo->pHHWinType);
HeapFree(GetProcessHeap(), 0, pHHInfo->szCmdLine);
}
/* FIXME: Check szCmdLine for bad arguments */
......
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