Jay Yang : shell32: Implement ILIsEmpty.

Alexandre Julliard julliard at winehq.org
Fri Jun 24 13:54:02 CDT 2011


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

Author: Jay Yang <jkelleyy at gmail.com>
Date:   Thu Jun 23 14:56:09 2011 -0400

shell32: Implement ILIsEmpty.

---

 include/shlobj.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/shlobj.h b/include/shlobj.h
index aab93fc..07981b6 100644
--- a/include/shlobj.h
+++ b/include/shlobj.h
@@ -1696,6 +1696,11 @@ HRESULT      WINAPI ILLoadFromStream(LPSTREAM,LPITEMIDLIST*);
 BOOL         WINAPI ILRemoveLastID(LPITEMIDLIST);
 HRESULT      WINAPI ILSaveToStream(LPSTREAM,LPCITEMIDLIST);
 
+static inline BOOL ILIsEmpty(LPCITEMIDLIST pidl)
+{
+    return !(pidl && pidl->mkid.cb);
+}
+
 
 #include <poppack.h>
 




More information about the wine-cvs mailing list