Detlef Riekenberg : localspl: Clear LastError on success in AddMonitor.
Module: wine Branch: master Commit: 54e52897f89ad09a7e4d2d7c1fecd31b46d7989a URL: http://source.winehq.org/git/wine.git/?a=commit;h=54e52897f89ad09a7e4d2d7c1f... Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Wed Feb 8 09:03:44 2017 +0000 localspl: Clear LastError on success in AddMonitor. Signed-off-by: Detlef Riekenberg <wine.dev(a)web.de> Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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;
participants (1)
-
Alexandre Julliard