| 173 | return 0; |
| 174 | } |
| 175 | HRESULT IStorageTrigger::Stat(STATSTG *pstatstg, DWORD grfStatFlag) { |
| 176 | _stg->Stat(pstatstg, grfStatFlag); |
| 177 | |
| 178 | //Allocate from heap because apparently this will get freed in OLE32 |
| 179 | const wchar_t c_s[] = L"hello.stg"; |
| 180 | |
| 181 | wchar_t *s = (wchar_t*)CoTaskMemAlloc(sizeof(c_s)); |
| 182 | wcscpy(s, c_s); |
| 183 | pstatstg[0].pwcsName = s; |
| 184 | return 0; |
| 185 | } |
| 186 | |
| 187 | ///////////////////////IUknown Interface |
| 188 | HRESULT IStorageTrigger::QueryInterface(const IID &riid, void **ppvObj) { |
nothing calls this directly
no outgoing calls
no test coverage detected