Hopefully fix a crash bug related to #32, #37 and #44

This commit is contained in:
Paddy Xu
2017-07-27 23:36:30 +03:00
parent 3fb18391df
commit 2204f27b01
5 changed files with 47 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ void HelperMethods::GetSelectedInternal(CComQIPtr<IWebBrowserApp> pwba, PWCHAR b
void HelperMethods::ObtainFirstItem(CComPtr<IDataObject> dao, PWCHAR buffer)
{
FORMATETC formatetc;
STGMEDIUM medium;
STGMEDIUM medium = {sizeof medium};
formatetc.cfFormat = CF_HDROP;
formatetc.ptd = nullptr;