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
68a5642d
Commit
68a5642d
authored
Sep 02, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Sep 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Use correct exit code when GetProcAddress fails.
parent
cb183688
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
regsvr32.c
programs/regsvr32/regsvr32.c
+3
-3
regsvr32.h
programs/regsvr32/regsvr32.h
+3
-0
No files found.
programs/regsvr32/regsvr32.c
View file @
68a5642d
...
...
@@ -127,7 +127,7 @@ static int RegisterDll(const WCHAR* strDll)
pfRegister
=
LoadProc
(
strDll
,
"DllRegisterServer"
,
&
DllHandle
);
if
(
!
pfRegister
)
return
0
;
return
GETPROCADDRESS_FAILED
;
hr
=
pfRegister
();
if
(
FAILED
(
hr
))
...
...
@@ -150,7 +150,7 @@ static int UnregisterDll(const WCHAR* strDll)
pfUnregister
=
LoadProc
(
strDll
,
"DllUnregisterServer"
,
&
DllHandle
);
if
(
!
pfUnregister
)
return
0
;
return
GETPROCADDRESS_FAILED
;
hr
=
pfUnregister
();
if
(
FAILED
(
hr
))
...
...
@@ -173,7 +173,7 @@ static int InstallDll(BOOL install, const WCHAR *strDll, const WCHAR *command_li
pfInstall
=
LoadProc
(
strDll
,
"DllInstall"
,
&
DllHandle
);
if
(
!
pfInstall
)
return
0
;
return
GETPROCADDRESS_FAILED
;
hr
=
pfInstall
(
install
,
command_line
);
if
(
FAILED
(
hr
))
...
...
programs/regsvr32/regsvr32.h
View file @
68a5642d
...
...
@@ -18,6 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* Exit codes */
#define GETPROCADDRESS_FAILED 4
/* Resource strings */
#define STRING_HEADER 1000
#define STRING_USAGE 1001
...
...
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