StgIsStorageFile Try #3

Ryan Cumming ryan at completely.kicks-ass.org
Sat Nov 16 03:21:36 CST 2002


On November 16, 2002 00:02, Dmitry Timoshkov wrote:
> "Ryan Cumming" <ryan at completely.kicks-ass.org> wrote:
> > + strW = HEAP_strdupAtoW( GetProcessHeap(), 0, fn );
>
> Please don't use HEAP_strdupAtoW. Use RtlCreateUnicodeStringFromAsciiz
> instead.

Thanks, fixed

-Ryan

ChangeLog:
-Move StgIsStorageFile16's implementation to StgIsStorageFile; port it to 
Win32.
-Move StgIsStorageFile from storage.c to storage32.c
-StgIsStorageFile only returns S_OK, STG_E_FILENOTFOUND, and S_FALSE (checked 
against MSDN and WinXP)
-StgIsStorageFile doesn't check if a file is large enough to be a storage 
file, it only checks for the presence of the 8-byte magic (checked against 
WinXP)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StgIsStorageFile3.diff
Type: text/x-diff
Size: 3499 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021116/346abd65/StgIsStorageFile3.bin


More information about the wine-patches mailing list