From f0baf82b363f18a1c915261a1bccc5c2e1b02a30 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 10 Aug 2004 23:41:58 +0000 Subject: [PATCH] stat on memory storage should return a NULL name, not "". --- dlls/ole32/storage32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index c182b8aae06..719f876ffcd 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -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; } -- 2.11.4.GIT