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
99ecebe9
Commit
99ecebe9
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 INVALID_ARG define instead of magic 1.
parent
4a4baf25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
regsvr32.c
programs/regsvr32/regsvr32.c
+3
-3
regsvr32.h
programs/regsvr32/regsvr32.h
+1
-0
No files found.
programs/regsvr32/regsvr32.c
View file @
99ecebe9
...
...
@@ -266,14 +266,14 @@ int wmain(int argc, WCHAR* argv[])
default:
output_write
(
STRING_UNRECOGNIZED_SWITCH
,
argv
[
i
]);
output_write
(
STRING_USAGE
);
return
1
;
return
INVALID_ARG
;
}
argv
[
i
]
=
NULL
;
}
}
if
(
!
CallInstall
&&
!
CallRegister
)
/* flags: /n or /u /n */
return
1
;
return
INVALID_ARG
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
...
...
@@ -309,7 +309,7 @@ int wmain(int argc, WCHAR* argv[])
{
output_write
(
STRING_HEADER
);
output_write
(
STRING_USAGE
);
return
1
;
return
INVALID_ARG
;
}
OleUninitialize
();
...
...
programs/regsvr32/regsvr32.h
View file @
99ecebe9
...
...
@@ -19,6 +19,7 @@
*/
/* Exit codes */
#define INVALID_ARG 1
#define LOADLIBRARY_FAILED 3
#define GETPROCADDRESS_FAILED 4
...
...
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