mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711692 - appbin fix and SCM lock hang fix. r=rstrong.
This commit is contained in:
parent
95ad280cda
commit
2fdf796977
@ -57,6 +57,8 @@
|
|||||||
#include "uachelper.h"
|
#include "uachelper.h"
|
||||||
#include "updatehelper.h"
|
#include "updatehelper.h"
|
||||||
|
|
||||||
|
extern HANDLE ghSvcStopEvent;
|
||||||
|
|
||||||
// Wait 15 minutes for an update operation to run at most.
|
// Wait 15 minutes for an update operation to run at most.
|
||||||
// Updates usually take less than a minute so this seems like a
|
// Updates usually take less than a minute so this seems like a
|
||||||
// significantly large and safe amount of time to wait.
|
// significantly large and safe amount of time to wait.
|
||||||
@ -371,7 +373,7 @@ ExecuteServiceCommand(int argc, LPWSTR *argv)
|
|||||||
{
|
{
|
||||||
if (argc < 3) {
|
if (argc < 3) {
|
||||||
LOG(("Not enough command line arguments to execute a service command\n"));
|
LOG(("Not enough command line arguments to execute a service command\n"));
|
||||||
StopService();
|
SetEvent(ghSvcStopEvent);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,6 +403,6 @@ ExecuteServiceCommand(int argc, LPWSTR *argv)
|
|||||||
|
|
||||||
LOG(("service command %ls complete with result: %ls.\n",
|
LOG(("service command %ls complete with result: %ls.\n",
|
||||||
argv[1], (result ? L"Success" : L"Failure")));
|
argv[1], (result ? L"Success" : L"Failure")));
|
||||||
StopService();
|
SetEvent(ghSvcStopEvent);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ const TEST_HELPER_TIMEOUT = 100;
|
|||||||
|
|
||||||
// Use a copy of the main application executable for the test to avoid main
|
// Use a copy of the main application executable for the test to avoid main
|
||||||
// executable in use errors.
|
// executable in use errors.
|
||||||
const FILE_WIN_TEST_EXE = "aus_test_app.exe";
|
const FILE_WIN_TEST_EXE = "_aus_test_app.exe";
|
||||||
|
|
||||||
var gTestserver;
|
var gTestserver;
|
||||||
|
|
||||||
@ -590,7 +590,7 @@ function runUpdateUsingService(aInitialStatus, aExpectedStatus,
|
|||||||
// Remove the copy of the application executable used for the test on
|
// Remove the copy of the application executable used for the test on
|
||||||
// Windows if it exists.
|
// Windows if it exists.
|
||||||
let appBinCopy = getCurrentProcessDir();
|
let appBinCopy = getCurrentProcessDir();
|
||||||
appBinCopy.append(FILE_WIN_TEST_EXE);
|
appBinCopy.append(TEST_ID + FILE_WIN_TEST_EXE);
|
||||||
if (appBinCopy.exists()) {
|
if (appBinCopy.exists()) {
|
||||||
try {
|
try {
|
||||||
appBinCopy.remove(false);
|
appBinCopy.remove(false);
|
||||||
@ -1636,13 +1636,13 @@ XPCOMUtils.defineLazyGetter(this, "gAppBinPath", function test_gAppBinPath() {
|
|||||||
if (appBin.exists()) {
|
if (appBin.exists()) {
|
||||||
if (IS_WIN) {
|
if (IS_WIN) {
|
||||||
let appBinCopy = processDir.clone();
|
let appBinCopy = processDir.clone();
|
||||||
appBinCopy.append(FILE_WIN_TEST_EXE);
|
appBinCopy.append(TEST_ID + FILE_WIN_TEST_EXE);
|
||||||
if (appBinCopy.exists()) {
|
if (appBinCopy.exists()) {
|
||||||
appBinCopy.remove(false);
|
appBinCopy.remove(false);
|
||||||
}
|
}
|
||||||
appBin.copyTo(processDir, FILE_WIN_TEST_EXE);
|
appBin.copyTo(processDir, TEST_ID + FILE_WIN_TEST_EXE);
|
||||||
appBin = processDir.clone();
|
appBin = processDir.clone();
|
||||||
appBin.append(FILE_WIN_TEST_EXE);
|
appBin.append(TEST_ID + FILE_WIN_TEST_EXE);
|
||||||
}
|
}
|
||||||
let appBinPath = appBin.path;
|
let appBinPath = appBin.path;
|
||||||
if (/ /.test(appBinPath)) {
|
if (/ /.test(appBinPath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user