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
30086feb
Commit
30086feb
authored
Jan 03, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Jan 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Make DoInfInstall return an HRESULT.
parent
0265676a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
advpack.c
dlls/advpack/advpack.c
+12
-3
No files found.
dlls/advpack/advpack.c
View file @
30086feb
...
...
@@ -190,8 +190,17 @@ typedef struct
/***********************************************************************
* DoInfInstall (ADVPACK.@)
*
* Install an INF section.
*
* PARAMS
* setup [I] Structure containing install information.
*
* RETURNS
* S_OK Everything OK
* HRESULT_FROM_WIN32(GetLastError()) Some other error
*/
BOOL
WINAPI
DoInfInstall
(
const
SETUPCOMMAND_PARAMS
*
setup
)
HRESULT
WINAPI
DoInfInstall
(
const
SETUPCOMMAND_PARAMS
*
setup
)
{
BOOL
ret
;
HINF
hinf
;
...
...
@@ -202,7 +211,7 @@ BOOL WINAPI DoInfInstall(const SETUPCOMMAND_PARAMS *setup)
debugstr_a
(
setup
->
section_name
));
hinf
=
SetupOpenInfFileA
(
setup
->
inf_name
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
hinf
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
if
(
hinf
==
INVALID_HANDLE_VALUE
)
return
HRESULT_FROM_WIN32
(
GetLastError
())
;
callback_context
=
SetupInitDefaultQueueCallback
(
setup
->
hwnd
);
...
...
@@ -212,7 +221,7 @@ BOOL WINAPI DoInfInstall(const SETUPCOMMAND_PARAMS *setup)
SetupTermDefaultQueueCallback
(
callback_context
);
SetupCloseInfFile
(
hinf
);
return
ret
;
return
ret
?
S_OK
:
HRESULT_FROM_WIN32
(
GetLastError
())
;
}
/***********************************************************************
...
...
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