Dmitry Timoshkov dmitry@codeweavers.com writes:
- IStorage *stg;
- if (StgOpenStorage(szOpenFileName, NULL, STGM_SHARE_DENY_WRITE | STGM_READ,
NULL, 0, &stg) == S_OK)
- {
IStorage_Release(stg);
MessageBoxW(hMainWnd, MAKEINTRESOURCEW(STRING_OLE_STORAGE_NOT_SUPPORTED), wszAppTitle,
MB_OK | MB_ICONEXCLAMATION);
return;
- }
It would be more efficient to simply check the magic number, particularly since we already have support for doing that.