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
bb80e228
Commit
bb80e228
authored
Jul 19, 2006
by
Christian Gmeiner
Committed by
Alexandre Julliard
Jul 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Remove unneeded NULL checks before MyFree().
parent
ece0ae0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
devinst.c
dlls/setupapi/devinst.c
+4
-9
No files found.
dlls/setupapi/devinst.c
View file @
bb80e228
...
...
@@ -148,8 +148,7 @@ BOOL WINAPI SetupDiBuildClassInfoListExA(
ClassGuidListSize
,
RequiredSize
,
MachineNameW
,
Reserved
);
if
(
MachineNameW
)
MyFree
(
MachineNameW
);
MyFree
(
MachineNameW
);
return
bResult
;
}
...
...
@@ -366,9 +365,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExA(
ClassGuidListSize
,
RequiredSize
,
MachineNameW
,
Reserved
);
if
(
MachineNameW
)
MyFree
(
MachineNameW
);
MyFree
(
MachineNameW
);
MyFree
(
ClassNameW
);
return
bResult
;
...
...
@@ -636,8 +633,7 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid,
hDevInfo
=
SetupDiCreateDeviceInfoListExW
(
ClassGuid
,
hwndParent
,
MachineNameW
,
Reserved
);
if
(
MachineNameW
)
MyFree
(
MachineNameW
);
MyFree
(
MachineNameW
);
return
hDevInfo
;
}
...
...
@@ -1303,8 +1299,7 @@ HKEY WINAPI SetupDiOpenClassRegKeyExA(
hKey
=
SetupDiOpenClassRegKeyExW
(
ClassGuid
,
samDesired
,
Flags
,
MachineNameW
,
Reserved
);
if
(
MachineNameW
)
MyFree
(
MachineNameW
);
MyFree
(
MachineNameW
);
return
hKey
;
}
...
...
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