Author: akhaldi
Date: Thu Mar 3 14:29:43 2016
New Revision: 70893
URL:
http://svn.reactos.org/svn/reactos?rev=70893&view=rev
Log:
[MSIEXEC] Sync with Wine Staging 1.9.4. CORE-10912
Modified:
trunk/reactos/base/system/msiexec/service.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/base/system/msiexec/service.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/msiexec/servic…
==============================================================================
--- trunk/reactos/base/system/msiexec/service.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/msiexec/service.c [iso-8859-1] Thu Mar 3 14:29:43 2016
@@ -39,7 +39,9 @@
status.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
status.dwCurrentState = dwCurrentState;
- if (dwCurrentState == SERVICE_START_PENDING)
+ if (dwCurrentState == SERVICE_START_PENDING
+ || dwCurrentState == SERVICE_STOP_PENDING
+ || dwCurrentState == SERVICE_STOPPED)
status.dwControlsAccepted = 0;
else
{
@@ -73,8 +75,6 @@
static void WINAPI ServiceCtrlHandler(DWORD code)
{
- DWORD state = SERVICE_RUNNING;
-
WINE_TRACE("%u\n", code);
switch (code)
@@ -83,14 +83,12 @@
case SERVICE_CONTROL_STOP:
UpdateSCMStatus(SERVICE_STOP_PENDING, NO_ERROR, 0);
KillService();
- state = SERVICE_STOPPED;
break;
default:
fprintf(stderr, "Unhandled service control code: %u\n", code);
+ UpdateSCMStatus(SERVICE_RUNNING, NO_ERROR, 0);
break;
}
-
- UpdateSCMStatus(state, NO_ERROR, 0);
}
static DWORD WINAPI ServiceExecutionThread(LPVOID param)
@@ -142,10 +140,7 @@
}
UpdateSCMStatus(SERVICE_RUNNING, NO_ERROR, 0);
-
- WaitForSingleObject(kill_event, INFINITE);
- KillService();
-
+ WaitForSingleObject(thread, INFINITE);
UpdateSCMStatus(SERVICE_STOPPED, NO_ERROR, 0);
}
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Thu Mar 3 14:29:43 2016
@@ -243,7 +243,7 @@
reactos/base/applications/wordpad # Synced to WineStaging-1.7.55
reactos/base/services/rpcss # Synced to WineStaging-1.7.55
reactos/base/system/expand # Synced to WineStaging-1.7.55
-reactos/base/system/msiexec # Synced to WineStaging-1.7.55
+reactos/base/system/msiexec # Synced to WineStaging-1.9.4
reactos/modules/rosapps/winfile # Autosync
In addition the following libs, dlls and source files are mostly based on code ported