Oleksij Rempel : shell32: Return empty list instead of NULL.

Alexandre Julliard julliard at winehq.org
Wed May 30 13:18:52 CDT 2012


Module: wine
Branch: master
Commit: 83196d0cb3dedd00254d13e3be9a8be7f2f8eb1d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=83196d0cb3dedd00254d13e3be9a8be7f2f8eb1d

Author: Oleksij Rempel <bug-track at fisher-privat.net>
Date:   Tue May 29 23:10:07 2012 +0200

shell32: Return empty list instead of NULL.

---

 dlls/shell32/dde.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/dde.c b/dlls/shell32/dde.c
index 2e04bd7..144470b 100644
--- a/dlls/shell32/dde.c
+++ b/dlls/shell32/dde.c
@@ -82,6 +82,14 @@ static inline HDDEDATA Dde_OnRequest(UINT uFmt, HCONV hconv, HSZ hszTopic,
         FIXME( "returning fake program groups list\n" );
         return DdeCreateDataHandle( dwDDEInst, groups_data, sizeof(groups_data), 0, hszGroups, uFmt, 0 );
     }
+    else if (hszTopic == hszProgmanTopic && hszItem == hszProgmanService && uFmt == CF_TEXT)
+    {
+        static BYTE groups_data[] = "\r\n";
+        FIXME( "returning empty groups list\n" );
+	/* this is an workaround for an app wich expect some data
+	 * and cant handle NULL. */
+        return DdeCreateDataHandle( dwDDEInst, groups_data, sizeof(groups_data), 0, hszProgmanService, uFmt, 0 );
+    }
     FIXME( "%u %p %s %s: stub\n", uFmt, hconv, debugstr_hsz(hszTopic), debugstr_hsz(hszItem) );
     return NULL;
 }




More information about the wine-cvs mailing list