Michael Stefaniuc : shell32: Get rid of a local typedef for a struct.
Alexandre Julliard
julliard at winehq.org
Mon Oct 10 10:25:36 CDT 2011
Module: wine
Branch: master
Commit: d81f55fae6f3fd146fc9517c276b7f67c1e20d61
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d81f55fae6f3fd146fc9517c276b7f67c1e20d61
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Oct 10 00:58:43 2011 +0200
shell32: Get rid of a local typedef for a struct.
---
dlls/shell32/enumidlist.c | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/dlls/shell32/enumidlist.c b/dlls/shell32/enumidlist.c
index f04ddd5..fbfe881 100644
--- a/dlls/shell32/enumidlist.c
+++ b/dlls/shell32/enumidlist.c
@@ -36,20 +36,19 @@
WINE_DEFAULT_DEBUG_CHANNEL(shell);
-typedef struct tagENUMLIST
+struct enumlist
{
- struct tagENUMLIST *pNext;
+ struct enumlist *pNext;
LPITEMIDLIST pidl;
-
-} ENUMLIST, *LPENUMLIST;
+};
typedef struct
{
IEnumIDList IEnumIDList_iface;
LONG ref;
- LPENUMLIST mpFirst;
- LPENUMLIST mpLast;
- LPENUMLIST mpCurrent;
+ struct enumlist *mpFirst;
+ struct enumlist *mpLast;
+ struct enumlist *mpCurrent;
} IEnumIDListImpl;
@@ -62,14 +61,14 @@ BOOL AddToEnumList(
{
IEnumIDListImpl *This = (IEnumIDListImpl *)iface;
- LPENUMLIST pNew;
+ struct enumlist *pNew;
TRACE("(%p)->(pidl=%p)\n",This,pidl);
if (!iface || !pidl)
return FALSE;
- pNew = SHAlloc(sizeof(ENUMLIST));
+ pNew = SHAlloc(sizeof(*pNew));
if(pNew)
{
/*set the next pointer */
@@ -164,7 +163,7 @@ BOOL CreateFolderEnumList(
static BOOL DeleteList(IEnumIDListImpl *This)
{
- LPENUMLIST pDelete;
+ struct enumlist *pDelete;
TRACE("(%p)->()\n",This);
More information about the wine-cvs
mailing list