advpack: NULL-terminate the source path.
This commit is contained in:
parent
9c6e762e6d
commit
48b55afa56
|
@ -628,6 +628,7 @@ HRESULT WINAPI LaunchINFSectionExW(HWND hWnd, HINSTANCE hInst, LPWSTR cmdline, I
|
||||||
cabinfo.pszInf = get_parameter(&cmdline_ptr, ',');
|
cabinfo.pszInf = get_parameter(&cmdline_ptr, ',');
|
||||||
cabinfo.pszSection = get_parameter(&cmdline_ptr, ',');
|
cabinfo.pszSection = get_parameter(&cmdline_ptr, ',');
|
||||||
cabinfo.pszCab = get_parameter(&cmdline_ptr, ',');
|
cabinfo.pszCab = get_parameter(&cmdline_ptr, ',');
|
||||||
|
*cabinfo.szSrcPath = '\0';
|
||||||
|
|
||||||
flags = get_parameter(&cmdline_ptr, ',');
|
flags = get_parameter(&cmdline_ptr, ',');
|
||||||
if (flags)
|
if (flags)
|
||||||
|
|
Loading…
Reference in New Issue