Louis Lenders : sc.exe: Fake succes for the SdSet argument.
Alexandre Julliard
julliard at winehq.org
Tue Nov 10 13:46:23 CST 2020
Module: wine
Branch: stable
Commit: cd9d439a8dea41f6555c9e4abdd78b320eaa78b1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cd9d439a8dea41f6555c9e4abdd78b320eaa78b1
Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Mon Jul 27 11:26:30 2020 +0200
sc.exe: Fake succes for the SdSet argument.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49620
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit a22b295cc30d89e446038c4e677f8ea6fef159e1)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
programs/sc/sc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/programs/sc/sc.c b/programs/sc/sc.c
index 1976c38a782..c9744afee36 100644
--- a/programs/sc/sc.c
+++ b/programs/sc/sc.c
@@ -220,6 +220,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
static const WCHAR deleteW[] = {'d','e','l','e','t','e',0};
static const WCHAR startW[] = {'s','t','a','r','t',0};
static const WCHAR stopW[] = {'s','t','o','p',0};
+ static const WCHAR sdsetW[] = {'s','d','s','e','t',0};
SC_HANDLE manager, service;
SERVICE_STATUS status;
BOOL ret = FALSE;
@@ -328,6 +329,11 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
}
else WINE_TRACE("failed to open service %u\n", GetLastError());
}
+ else if (!wcsicmp( argv[1], sdsetW ))
+ {
+ WINE_FIXME("SdSet command not supported, faking success\n");
+ ret = TRUE;
+ }
else
WINE_FIXME("command not supported\n");
More information about the wine-cvs
mailing list