Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d62b48df
Commit
d62b48df
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Do not cast NULL.
parent
87785a2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
stringtable.c
dlls/setupapi/stringtable.c
+3
-3
No files found.
dlls/setupapi/stringtable.c
View file @
d62b48df
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment