There is no mention of a NULL pidl in the SHGetSpecialFolderLocation() documentation in
MSDN, nor in any of the documentation that even mentions that function (at least that I
could find). Therefore, I didn't think it would be a valid value. I can change the 
check
from:

if ( *ppidl == NULL )
{
        hr = E_INVALIDARG;
}

to

if ( *ppidl == NULL && nFolder != CSIDL_DESKTOP )
{
        hr = E_INVALIDARG;
}

if that would be better.

Henning

Juergen Schmied wrote:
> 
> Hi!
> 
> Did you check where this NULL comes from? A NULL can be a valid
> pidl and means "desktop" sometimes. Explorer uses this.
> 
> juergen
> 
> ---
> [EMAIL PROTECTED]
> 
> ... from sunny Berlin

Reply via email to