Changeset 2261


Ignore:
Timestamp:
10/30/2010 12:56:19 AM (3 years ago)
Author:
lowjoel
Message:

Fix crash when right-clicking in empty locations of folders (one wonders why this bug didn't manifest itself earlier)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/ShellExt/CtxMenu.cpp

    r2253 r2261  
    186186        FORMATETC fmt = { CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL }; 
    187187        STGMEDIUM stg = { TYMED_HGLOBAL }; 
    188         if (FAILED(pDataObj->GetData(&fmt, &stg))) 
     188        if (!pDataObj || FAILED(pDataObj->GetData(&fmt, &stg))) 
    189189            //Nope! Return an "invalid argument" error back to Explorer. 
    190190            return E_INVALIDARG; 
Note: See TracChangeset for help on using the changeset viewer.