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
e19a8fd7
Commit
e19a8fd7
authored
Sep 09, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Return the most recent error code, even if later DLLs succeed.
parent
5b4d759e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
regsvr32.c
programs/regsvr32/regsvr32.c
+13
-6
No files found.
programs/regsvr32/regsvr32.c
View file @
e19a8fd7
...
...
@@ -19,9 +19,6 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
* This version deliberately differs in error handling compared to the
* Windows version.
*/
#define WIN32_LEAN_AND_MEAN
...
...
@@ -221,7 +218,7 @@ static WCHAR *parse_command_line(WCHAR *command_line)
int
wmain
(
int
argc
,
WCHAR
*
argv
[])
{
int
i
;
int
i
,
res
,
ret
=
0
;
BOOL
CallRegister
=
TRUE
;
BOOL
CallInstall
=
FALSE
;
BOOL
Unregister
=
FALSE
;
...
...
@@ -286,7 +283,7 @@ int wmain(int argc, WCHAR* argv[])
if
(
argv
[
i
])
{
WCHAR
*
DllName
=
argv
[
i
];
int
res
=
0
;
res
=
0
;
DllFound
=
TRUE
;
if
(
CallInstall
&&
Unregister
)
...
...
@@ -294,7 +291,10 @@ int wmain(int argc, WCHAR* argv[])
/* The Windows version stops processing the current file on the first error. */
if
(
res
)
{
ret
=
res
;
continue
;
}
if
(
!
CallInstall
||
(
CallInstall
&&
CallRegister
))
{
...
...
@@ -305,13 +305,19 @@ int wmain(int argc, WCHAR* argv[])
}
if
(
res
)
{
ret
=
res
;
continue
;
}
if
(
CallInstall
&&
!
Unregister
)
res
=
InstallDll
(
!
Unregister
,
DllName
,
wsCommandLine
);
if
(
res
)
{
ret
=
res
;
continue
;
}
}
}
...
...
@@ -324,5 +330,6 @@ int wmain(int argc, WCHAR* argv[])
OleUninitialize
();
return
0
;
/* return the most recent error code, even if later DLLs succeed */
return
ret
;
}
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