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
41533fa5
Commit
41533fa5
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Fix pointer cast warnings on 64-bit.
parent
99132bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
setupcab.c
dlls/setupapi/setupcab.c
+8
-8
No files found.
dlls/setupapi/setupcab.c
View file @
41533fa5
...
...
@@ -307,7 +307,7 @@ static INT_PTR CDECL sc_FNNOTIFY_A(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
ci
.
DiskName
=
pfdin
->
psz2
;
ci
.
SetId
=
pfdin
->
setID
;
ci
.
CabinetNumber
=
pfdin
->
iCabinet
;
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_CABINETINFO
,
(
UINT
)
&
ci
,
0
);
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_CABINETINFO
,
(
UINT
_PTR
)
&
ci
,
0
);
return
0
;
case
fdintPARTIAL_FILE
:
TRACE
(
"Partial file notification
\n
"
);
...
...
@@ -328,7 +328,7 @@ static INT_PTR CDECL sc_FNNOTIFY_A(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
fici
.
DosAttribs
=
pfdin
->
attribs
;
memset
(
&
(
fici
.
FullTargetName
[
0
]),
0
,
MAX_PATH
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_FILEINCABINET
,
(
UINT
)
&
fici
,
(
UINT
)
pfdin
->
psz1
);
(
UINT
_PTR
)
&
fici
,
(
UINT_PTR
)
pfdin
->
psz1
);
if
(
err
==
FILEOP_DOIT
)
{
TRACE
(
" Callback specified filename: %s
\n
"
,
debugstr_a
(
&
(
fici
.
FullTargetName
[
0
])));
if
(
!
fici
.
FullTargetName
[
0
])
{
...
...
@@ -352,7 +352,7 @@ static INT_PTR CDECL sc_FNNOTIFY_A(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
fp
.
Flags
=
0
;
/* the following should be a fixme -- but it occurs too many times */
WARN
(
"Should set file date/time/attribs (and execute files?)
\n
"
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_FILEEXTRACTED
,
(
UINT
)
&
fp
,
0
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_FILEEXTRACTED
,
(
UINT
_PTR
)
&
fp
,
0
);
if
(
sc_cb_close
(
pfdin
->
hf
))
WARN
(
"_close failed.
\n
"
);
if
(
err
)
{
...
...
@@ -374,7 +374,7 @@ static INT_PTR CDECL sc_FNNOTIFY_A(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
ci
.
CabinetNumber
=
pfdin
->
iCabinet
;
/* remember the new cabinet name */
strcpy
(
&
(
phsc
->
most_recent_cabinet_name
[
0
]),
pfdin
->
psz1
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_NEEDNEWCABINET
,
(
UINT
)
&
ci
,
(
UINT
)
&
(
mysterio
[
0
])
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_NEEDNEWCABINET
,
(
UINT
_PTR
)
&
ci
,
(
UINT_PTR
)
mysterio
);
if
(
err
)
{
SetLastError
(
err
);
return
-
1
;
...
...
@@ -438,7 +438,7 @@ static INT_PTR CDECL sc_FNNOTIFY_W(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
ci
.
DiskName
=
&
(
buf2
[
0
]);
ci
.
SetId
=
pfdin
->
setID
;
ci
.
CabinetNumber
=
pfdin
->
iCabinet
;
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_CABINETINFO
,
(
UINT
)
&
ci
,
0
);
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_CABINETINFO
,
(
UINT
_PTR
)
&
ci
,
0
);
return
0
;
case
fdintPARTIAL_FILE
:
TRACE
(
"Partial file notification
\n
"
);
...
...
@@ -462,7 +462,7 @@ static INT_PTR CDECL sc_FNNOTIFY_W(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
fici
.
DosAttribs
=
pfdin
->
attribs
;
memset
(
&
(
fici
.
FullTargetName
[
0
]),
0
,
MAX_PATH
*
sizeof
(
WCHAR
));
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_FILEINCABINET
,
(
UINT
)
&
fici
,
(
UINT
)
pfdin
->
psz1
);
(
UINT
_PTR
)
&
fici
,
(
UINT_PTR
)
pfdin
->
psz1
);
if
(
err
==
FILEOP_DOIT
)
{
TRACE
(
" Callback specified filename: %s
\n
"
,
debugstr_w
(
&
(
fici
.
FullTargetName
[
0
])));
if
(
fici
.
FullTargetName
[
0
])
{
...
...
@@ -495,7 +495,7 @@ static INT_PTR CDECL sc_FNNOTIFY_W(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
fp
.
Flags
=
0
;
/* a valid fixme -- but occurs too many times */
/* FIXME("Should set file date/time/attribs (and execute files?)\n"); */
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_FILEEXTRACTED
,
(
UINT
)
&
fp
,
0
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_FILEEXTRACTED
,
(
UINT
_PTR
)
&
fp
,
0
);
if
(
sc_cb_close
(
pfdin
->
hf
))
WARN
(
"_close failed.
\n
"
);
if
(
err
)
{
...
...
@@ -525,7 +525,7 @@ static INT_PTR CDECL sc_FNNOTIFY_W(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION p
ci
.
DiskName
=
&
(
buf2
[
0
]);
ci
.
SetId
=
pfdin
->
setID
;
ci
.
CabinetNumber
=
pfdin
->
iCabinet
;
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_NEEDNEWCABINET
,
(
UINT
)
&
ci
,
(
UINT
)
&
(
mysterio
[
0
])
);
err
=
phsc
->
msghandler
(
phsc
->
context
,
SPFILENOTIFY_NEEDNEWCABINET
,
(
UINT
_PTR
)
&
ci
,
(
UINT_PTR
)
mysterio
);
if
(
err
)
{
SetLastError
(
err
);
return
-
1
;
...
...
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