setupapi: Do not cast NULL.
Michael Stefaniuc
mstefani at redhat.de
Sat Nov 1 18:21:48 CDT 2008
---
dlls/setupapi/stringtable.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/setupapi/stringtable.c b/dlls/setupapi/stringtable.c
index 58a2530..59ad6ce 100644
--- a/dlls/setupapi/stringtable.c
+++ b/dlls/setupapi/stringtable.c
@@ -342,14 +342,14 @@ StringTableDuplicate(HSTRING_TABLE hStringTable)
if (pSourceTable == NULL)
{
ERR("Invalid hStringTable!\n");
- return (HSTRING_TABLE)NULL;
+ return NULL;
}
pDestinationTable = MyMalloc(sizeof(STRING_TABLE));
if (pDestinationTable == NULL)
{
ERR("Could not allocate a new string table!\n");
- return (HSTRING_TABLE)NULL;
+ return NULL;
}
memset(pDestinationTable, 0, sizeof(STRING_TABLE));
@@ -358,7 +358,7 @@ StringTableDuplicate(HSTRING_TABLE hStringTable)
if (pDestinationTable->pSlots == NULL)
{
MyFree(pDestinationTable);
- return (HSTRING_TABLE)NULL;
+ return NULL;
}
memset(pDestinationTable->pSlots, 0, sizeof(TABLE_SLOT) * pSourceTable->dwMaxSlots);
--
1.6.0.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081102/b1466639/attachment.pgp
More information about the wine-patches
mailing list