wordpad: Refuse to load OLE compound storage files like Windows does
Alexandre Julliard
julliard at winehq.org
Tue Oct 16 07:41:28 CDT 2007
Dmitry Timoshkov <dmitry at 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.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list