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
3858ea03
Commit
3858ea03
authored
Mar 19, 2014
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regsvr32: Move silent check to the output_write function.
parent
412a4f13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
regsvr32.c
programs/regsvr32/regsvr32.c
+2
-18
No files found.
programs/regsvr32/regsvr32.c
View file @
3858ea03
...
...
@@ -72,6 +72,8 @@ static void __cdecl output_write(UINT id, ...)
char
*
str
;
DWORD
len
,
nOut
,
ret
;
if
(
Silent
)
return
;
if
(
!
LoadStringA
(
GetModuleHandleA
(
NULL
),
id
,
fmt
,
sizeof
(
fmt
)
/
sizeof
(
fmt
[
0
])))
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
...
...
@@ -112,15 +114,12 @@ static VOID *LoadProc(const char* strDll, const char* procName, HMODULE* DllHand
*
DllHandle
=
LoadLibraryExA
(
strDll
,
0
,
LOAD_WITH_ALTERED_SEARCH_PATH
);
if
(
!*
DllHandle
)
{
if
(
!
Silent
)
output_write
(
STRING_DLL_LOAD_FAILED
,
strDll
);
ExitProcess
(
1
);
}
proc
=
(
VOID
*
)
GetProcAddress
(
*
DllHandle
,
procName
);
if
(
!
proc
)
{
if
(
!
Silent
)
output_write
(
STRING_PROC_NOT_IMPLEMENTED
,
procName
,
strDll
);
FreeLibrary
(
*
DllHandle
);
return
NULL
;
...
...
@@ -141,12 +140,9 @@ static int RegisterDll(const char* strDll)
hr
=
pfRegister
();
if
(
FAILED
(
hr
))
{
if
(
!
Silent
)
output_write
(
STRING_REGISTER_FAILED
,
strDll
);
return
-
1
;
}
if
(
!
Silent
)
output_write
(
STRING_REGISTER_SUCCESSFUL
,
strDll
);
if
(
DllHandle
)
...
...
@@ -167,12 +163,9 @@ static int UnregisterDll(char* strDll)
hr
=
pfUnregister
();
if
(
FAILED
(
hr
))
{
if
(
!
Silent
)
output_write
(
STRING_UNREGISTER_FAILED
,
strDll
);
return
-
1
;
}
if
(
!
Silent
)
output_write
(
STRING_UNREGISTER_SUCCESSFUL
,
strDll
);
if
(
DllHandle
)
...
...
@@ -193,22 +186,16 @@ static int InstallDll(BOOL install, char *strDll, WCHAR *command_line)
hr
=
pfInstall
(
install
,
command_line
);
if
(
FAILED
(
hr
))
{
if
(
!
Silent
)
{
if
(
install
)
output_write
(
STRING_INSTALL_FAILED
,
strDll
);
else
output_write
(
STRING_UNINSTALL_FAILED
,
strDll
);
}
return
-
1
;
}
if
(
!
Silent
)
{
if
(
install
)
output_write
(
STRING_INSTALL_SUCCESSFUL
,
strDll
);
else
output_write
(
STRING_UNINSTALL_SUCCESSFUL
,
strDll
);
}
if
(
DllHandle
)
FreeLibrary
(
DllHandle
);
...
...
@@ -320,11 +307,8 @@ int main(int argc, char* argv[])
if
(
!
DllFound
)
{
if
(
!
Silent
)
{
output_write
(
STRING_HEADER
);
output_write
(
STRING_USAGE
);
}
return
1
;
}
...
...
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