[PATCH v3 1/2] localspl: Clear LastError on success in AddMonitor.
Huw Davies
huw at codeweavers.com
Wed Feb 8 03:03:44 CST 2017
There are printmonitor installers, which depend on
GetLastError() even on success of AddMonitor.
From: Detlef Riekenberg <wine.dev at web.de>
Signed-off-by: Detlef Riekenberg <wine.dev at web.de>
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/localspl/provider.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/localspl/provider.c b/dlls/localspl/provider.c
index f359b73..4f6bac3 100644
--- a/dlls/localspl/provider.c
+++ b/dlls/localspl/provider.c
@@ -1507,6 +1507,8 @@ static BOOL WINAPI fpAddMonitor(LPWSTR pName, DWORD Level, LPBYTE pMonitors)
}
monitor_unload(pm);
+ SetLastError(ERROR_SUCCESS); /* Monitor installer depends on this */
+
if (RegCreateKeyW(HKEY_LOCAL_MACHINE, monitorsW, &hroot) != ERROR_SUCCESS) {
ERR("unable to create key %s\n", debugstr_w(monitorsW));
return FALSE;
--
2.10.2
More information about the wine-patches
mailing list