Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
02d1154b
Commit
02d1154b
authored
Dec 08, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Remove some superfluous casts.
parent
e8992418
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
devinst.c
dlls/setupapi/devinst.c
+3
-3
diskspace.c
dlls/setupapi/diskspace.c
+1
-1
misc.c
dlls/setupapi/misc.c
+1
-1
parser.c
dlls/setupapi/parser.c
+1
-1
devinst.c
dlls/setupapi/tests/devinst.c
+1
-1
No files found.
dlls/setupapi/devinst.c
View file @
02d1154b
...
...
@@ -561,8 +561,8 @@ static BOOL SETUPDI_AddDeviceToSet(struct DeviceInfoSet *set,
devInst
->
data
.
DevInst
=
devInfo
->
devId
;
devInst
->
data
.
Reserved
=
(
ULONG_PTR
)
devInfo
;
SETUPDI_GuidToString
(
guid
,
classGuidStr
);
SetupDiSetDeviceRegistryPropertyW
(
(
HDEVINFO
)
set
,
&
devInst
->
data
,
SPDRP_CLASSGUID
,
(
const
BYTE
*
)
classGuidStr
,
SetupDiSetDeviceRegistryPropertyW
(
set
,
&
devInst
->
data
,
SPDRP_CLASSGUID
,
(
const
BYTE
*
)
classGuidStr
,
lstrlenW
(
classGuidStr
)
*
sizeof
(
WCHAR
));
if
(
dev
)
*
dev
=
&
devInst
->
data
;
ret
=
TRUE
;
...
...
@@ -1190,7 +1190,7 @@ SetupDiCreateDeviceInfoListExW(const GUID *ClassGuid,
list
->
cDevices
=
0
;
list_init
(
&
list
->
devices
);
return
(
HDEVINFO
)
list
;
return
list
;
}
/***********************************************************************
...
...
dlls/setupapi/diskspace.c
View file @
02d1154b
...
...
@@ -82,7 +82,7 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
}
ptr
+=
lstrlenW
(
ptr
)
+
1
;
}
return
(
HANDLE
)
list
;
return
list
;
}
...
...
dlls/setupapi/misc.c
View file @
02d1154b
...
...
@@ -727,7 +727,7 @@ DWORD WINAPI TakeOwnershipOfFile(LPCWSTR lpFileName)
goto
fail
;
}
pOwner
=
(
PTOKEN_OWNER
)
MyMalloc
(
dwSize
);
pOwner
=
MyMalloc
(
dwSize
);
if
(
pOwner
==
NULL
)
{
CloseHandle
(
hToken
);
...
...
dlls/setupapi/parser.c
View file @
02d1154b
...
...
@@ -1158,7 +1158,7 @@ HINF WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR class, DWORD style, UINT *err
TRACE
(
"%s -> %p
\n
"
,
debugstr_w
(
path
),
file
);
file
->
filename
=
path
;
SetLastError
(
0
);
return
(
HINF
)
file
;
return
file
;
}
...
...
dlls/setupapi/tests/devinst.c
View file @
02d1154b
...
...
@@ -1091,7 +1091,7 @@ static void testRegisterAndGetDetail(void)
"
\\\\
?
\\
root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}
\\
"
;
PSP_DEVICE_INTERFACE_DETAIL_DATA_A
detail
=
NULL
;
detail
=
(
PSP_DEVICE_INTERFACE_DETAIL_DATA_A
)
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
detail
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
if
(
detail
)
{
detail
->
cbSize
=
FIELD_OFFSET
(
SP_DEVICE_INTERFACE_DETAIL_DATA_A
,
DevicePath
)
+
sizeof
(
char
);
...
...
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