mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 23:21:23 +00:00
Patch from ShadowFlare, bug 1838.
"The current implementation continues to register or unregister additional DLLs that were specified, even if one of the earlier ones failed. The behavior on the Microsoft version is different; if one fails, it stops there instead of continuing. Some installers may possibly depend on this behavior." svn path=/trunk/; revision=24371
This commit is contained in:
parent
835bb80157
commit
2167cc7a61
1 changed files with 12 additions and 12 deletions
|
@ -1,10 +1,10 @@
|
||||||
/*
|
/*
|
||||||
* ReactOS regsvr32
|
* ReactOS regsvr32
|
||||||
* Copyright (C) 2004 ReactOS Team
|
* Copyright (C) 2004-2006 ReactOS Team
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS regsvr32.exe
|
* PROJECT: ReactOS regsvr32.exe
|
||||||
* FILE: apps/utils/regsvr32/regsvr32.c
|
* FILE: base/system/regsvr32/regsvr32.c
|
||||||
* PURPOSE: Register a COM component in the registry
|
* PURPOSE: Register a COM component in the registry
|
||||||
* PROGRAMMER: ShadowFlare (blakflare@hotmail.com)
|
* PROGRAMMER: ShadowFlare (blakflare@hotmail.com)
|
||||||
*/
|
*/
|
||||||
|
@ -271,12 +271,12 @@ int WINAPI WinMain(
|
||||||
|
|
||||||
// Get Langues msg
|
// Get Langues msg
|
||||||
LoadString( GetModuleHandle(NULL), IDS_UsageMessage, (LPTSTR) UsageMessage,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_UsageMessage, (LPTSTR) UsageMessage,RC_STRING_MAX_SIZE);
|
||||||
LoadString( GetModuleHandle(NULL), IDS_NoDllSpecified, (LPTSTR) NoDllSpecified,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_NoDllSpecified, (LPTSTR) NoDllSpecified,RC_STRING_MAX_SIZE);
|
||||||
LoadString( GetModuleHandle(NULL), IDS_InvalidFlag, (LPTSTR) InvalidFlag,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_InvalidFlag, (LPTSTR) InvalidFlag,RC_STRING_MAX_SIZE);
|
||||||
LoadString( GetModuleHandle(NULL), IDS_SwitchN_NoI, (LPTSTR) SwitchN_NoI,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_SwitchN_NoI, (LPTSTR) SwitchN_NoI,RC_STRING_MAX_SIZE);
|
||||||
|
|
||||||
LoadString( GetModuleHandle(NULL), IDS_DllNotLoaded, (LPTSTR) DllNotLoaded,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_DllNotLoaded, (LPTSTR) DllNotLoaded,RC_STRING_MAX_SIZE);
|
||||||
LoadString( GetModuleHandle(NULL), IDS_MissingEntry, (LPTSTR) MissingEntry,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_MissingEntry, (LPTSTR) MissingEntry,RC_STRING_MAX_SIZE);
|
||||||
LoadString( GetModuleHandle(NULL), IDS_FailureMessage, (LPTSTR) FailureMessage,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_FailureMessage, (LPTSTR) FailureMessage,RC_STRING_MAX_SIZE);
|
||||||
LoadString( GetModuleHandle(NULL), IDS_SuccessMessage, (LPTSTR) SuccessMessage,RC_STRING_MAX_SIZE);
|
LoadString( GetModuleHandle(NULL), IDS_SuccessMessage, (LPTSTR) SuccessMessage,RC_STRING_MAX_SIZE);
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ int WINAPI WinMain(
|
||||||
OleInitialize(0);
|
OleInitialize(0);
|
||||||
|
|
||||||
// (Un)register every dll whose filename was passed in the command-line string
|
// (Un)register every dll whose filename was passed in the command-line string
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc && nRetValue == EXITCODE_SUCCESS; i++) {
|
||||||
// Arguments that do not start with a slash (/) are filenames
|
// Arguments that do not start with a slash (/) are filenames
|
||||||
if (*argv[i] != _T('/')) {
|
if (*argv[i] != _T('/')) {
|
||||||
lptDllName = argv[i];
|
lptDllName = argv[i];
|
||||||
|
@ -425,7 +425,7 @@ int WINAPI WinMain(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bInstall) {
|
if (bInstall && nRetValue == EXITCODE_SUCCESS) {
|
||||||
// Get the address of DllInstall
|
// Get the address of DllInstall
|
||||||
fnDllInstall = (DLLINSTALL)GetProcAddress(hDll,szDllInstall);
|
fnDllInstall = (DLLINSTALL)GetProcAddress(hDll,szDllInstall);
|
||||||
if (fnDllInstall) {
|
if (fnDllInstall) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue