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
db4a8bf0
Commit
db4a8bf0
authored
Jun 26, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Clean up and update comments to reflect changes to the codebase.
parent
295a8d83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
27 deletions
+10
-27
regsvr32.c
programs/regsvr32/regsvr32.c
+10
-27
No files found.
programs/regsvr32/regsvr32.c
View file @
db4a8bf0
...
...
@@ -4,6 +4,7 @@
* Copyright 2001 ReactOS project
* Copyright 2001 Jurgen Van Gael [jurgen.vangael@student.kuleuven.ac.be]
* Copyright 2002 Andriy Palamarchuk
* Copyright 2014, 2015 Hugh McMaster
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -20,30 +21,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
* This version deliberately differs in error handling compared to the
* windows version.
*/
/*
*
* regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname ...
* [/u] unregister server
* [/s] silent (no message boxes)
* [/i] Call DllInstall passing it an optional [cmdline];
* when used with /u calls dll uninstall.
* [/n] Do not call DllRegisterServer; this option must be used with [/i]
* [/c] Console output (seems to be deprecated and ignored)
*
* Note the complication that this version may be passed unix format file names
* which might be mistaken for flags. Conveniently the Windows version
* requires each flag to be separate (e.g. no /su ) and so we will simply
* assume that anything longer than /. is a filename.
*/
/**
* FIXME - currently receives command-line parameters in ASCII only and later
* converts to Unicode. Ideally the function should have wWinMain entry point
* and then work in Unicode only, but it seems Wine does not have necessary
* support.
* Windows version.
*/
#define WIN32_LEAN_AND_MEAN
...
...
@@ -118,8 +96,8 @@ static void __cdecl output_write(UINT id, ...)
*
* Parameters:
* strDll - name of the dll.
* procName - name of the procedure to load from
dll
*
pDllHanlde - output variable receives
handle of the loaded dll.
* procName - name of the procedure to load from
the dll.
*
DllHandle - a variable that receives the
handle of the loaded dll.
*/
static
VOID
*
LoadProc
(
const
WCHAR
*
strDll
,
const
char
*
procName
,
HMODULE
*
DllHandle
)
{
...
...
@@ -257,6 +235,11 @@ int wmain(int argc, WCHAR* argv[])
* the files (e.g. regsvr32 file1 /s file2 is silent even for file1).
* For ease, we will not replicate that and will process the arguments
* in order.
*
* Note the complication that this version may be passed Unix format filenames
* which could be mistaken for flags. The Windows version conveniently
* requires each flag to be separate (e.g. no /su), so we will simply
* assume that anything longer than /. is a filename.
*/
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
...
...
@@ -304,7 +287,7 @@ int wmain(int argc, WCHAR* argv[])
if
(
res
)
return
res
;
/* Confirmed. The windows version does stop on the first error.
*/
/* Confirmed. The Windows version stops on the first error.
*/
if
(
CallInstall
)
{
...
...
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