Re: shell32: Partial implementation of IShellItem::BindToHandler.

2010-08-02 Thread Nikolay Sivov
On 8/2/2010 16:07, David Hedberg wrote: On Mon, Aug 2, 2010 at 10:50 AM, Nikolay Sivov wrote: Ok, this test is present already cause Desktop list is an empty list. So please change this test for mkid.cb magic value to _ILIsEmpty() in BindToObject() and all other occurrences too (InitializeTre

Re: shell32: Partial implementation of IShellItem::BindToHandler.

2010-08-02 Thread David Hedberg
On Mon, Aug 2, 2010 at 10:50 AM, Nikolay Sivov wrote: > > Ok, this test is present already cause Desktop list is an empty list. So > please change this test for > mkid.cb magic value to _ILIsEmpty() in BindToObject() and all other > occurrences too (InitializeTreeView() for example). > Is someth

Re: shell32: Partial implementation of IShellItem::BindToHandler.

2010-08-02 Thread Nikolay Sivov
On 8/2/2010 12:07, David Hedberg wrote: Hi, On Mon, Aug 2, 2010 at 7:04 AM, Nikolay Sivov wrote: On 8/2/2010 02:36, David Hedberg wrote: +static HRESULT ShellItem_get_shellfolder(ShellItem *This, IBindCtx *pbc, IShellFolder **ppsf) +{ +IShellFolder *desktop; +HRESULT ret; + +re

Re: shell32: Partial implementation of IShellItem::BindToHandler.

2010-08-02 Thread David Hedberg
Hi, On Mon, Aug 2, 2010 at 7:04 AM, Nikolay Sivov wrote: >  On 8/2/2010 02:36, David Hedberg wrote: >> >> +static HRESULT ShellItem_get_shellfolder(ShellItem *This, IBindCtx *pbc, >> IShellFolder **ppsf) >> +{ >> +    IShellFolder *desktop; >> +    HRESULT ret; >> + >> +    ret = SHGetDesktopFold

Re: shell32: Partial implementation of IShellItem::BindToHandler.

2010-08-01 Thread Nikolay Sivov
On 8/2/2010 02:36, David Hedberg wrote: +static HRESULT ShellItem_get_shellfolder(ShellItem *This, IBindCtx *pbc, IShellFolder **ppsf) +{ +IShellFolder *desktop; +HRESULT ret; + +ret = SHGetDesktopFolder(&desktop); +if (SUCCEEDED(ret)) +{ +if (_ILIsDesktop(This->pidl