stat on memory storage should return a NULL name, not "".

This commit is contained in:
Mike McCormack 2004-08-10 23:41:58 +00:00 committed by Alexandre Julliard
parent 08c6c698dd
commit f0baf82b36

View file

@ -4104,7 +4104,9 @@ void StorageUtl_CopyPropertyToSTATSTG(
/*
* The copy of the string occurs only when the flag is not set
*/
if ((statFlags & STATFLAG_NONAME) != 0)
if( ((statFlags & STATFLAG_NONAME) != 0) ||
(source->name == NULL) ||
(source->name[0] == 0) )
{
destination->pwcsName = 0;
}