mirror of
https://github.com/reactos/reactos.git
synced 2025-06-14 23:48:29 +00:00
[SHELL32] Fix some NULL-pointers validation.
- In the exported SHCreateDefaultContextMenu() and IDataObject_Constructor() functions (called amongst others by the exported CIDLData_CreateFromIDArray() function). - In the exported SHCreateShellFolderView() function. - In CDefView::GetItemObject(), where data was written to *ppvOut before ppvOut was being checked for NULL.
This commit is contained in:
parent
47d76db311
commit
ae2a85d003
3 changed files with 14 additions and 6 deletions
|
@ -1472,7 +1472,12 @@ HRESULT
|
|||
WINAPI
|
||||
SHCreateDefaultContextMenu(const DEFCONTEXTMENU *pdcm, REFIID riid, void **ppv)
|
||||
{
|
||||
HRESULT hr = CDefaultContextMenu_CreateInstance(pdcm, NULL, riid, ppv);
|
||||
HRESULT hr;
|
||||
|
||||
if (!ppv)
|
||||
return E_INVALIDARG;
|
||||
|
||||
hr = CDefaultContextMenu_CreateInstance(pdcm, NULL, riid, ppv);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue