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
148a4812
Commit
148a4812
authored
Apr 04, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Apr 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Factor out advpack error handling into ADV_HRESULT.
parent
5a5b35ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
install.c
dlls/advpack/install.c
+3
-8
No files found.
dlls/advpack/install.c
View file @
148a4812
...
...
@@ -39,6 +39,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(advpack);
#define SPAPI_MASK 0xFFFFL
#define HRESULT_FROM_SPAPI(x) ((x & SPAPI_MASK) | SPAPI_PREFIX)
#define ADV_HRESULT(x) ((x & SPAPI_ERROR) ? HRESULT_FROM_SPAPI(x) : HRESULT_FROM_WIN32(x))
/* this structure very closely resembles parameters of RunSetupCommand() */
typedef
struct
{
...
...
@@ -366,7 +368,6 @@ HRESULT WINAPI RunSetupCommandW(HWND hWnd, LPCWSTR szCmdName,
DWORD
dwFlags
,
LPVOID
pvReserved
)
{
HINF
hinf
;
DWORD
err
;
TRACE
(
"(%p, %s, %s, %s, %s, %p, 0x%08lx, %p)
\n
"
,
hWnd
,
debugstr_w
(
szCmdName
),
debugstr_w
(
szInfSection
),
...
...
@@ -384,13 +385,7 @@ HRESULT WINAPI RunSetupCommandW(HWND hWnd, LPCWSTR szCmdName,
hinf
=
SetupOpenInfFileW
(
szCmdName
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
hinf
==
INVALID_HANDLE_VALUE
)
{
err
=
GetLastError
();
if
(
err
&
SPAPI_ERROR
)
return
HRESULT_FROM_SPAPI
(
err
);
else
return
HRESULT_FROM_WIN32
(
err
);
}
return
ADV_HRESULT
(
GetLastError
());
SetupCloseInfFile
(
hinf
);
return
E_UNEXPECTED
;
...
...
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