Commit f0baf82b authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 08c6c698
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment