From 64b23aea1248cf8511c8eea75055b627e6b41e10 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Thu, 17 Sep 2009 15:25:36 +0000 Subject: [PATCH] - Fix 2 user32 winstation test failures (patch by Giannis Adamopoulos johnyadams (_AT_)hotmail (D-O-T) com - Test results verified by Amine Khaldi svn path=/trunk/; revision=43063 --- reactos/dll/win32/user32/misc/winsta.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/dll/win32/user32/misc/winsta.c b/reactos/dll/win32/user32/misc/winsta.c index d6c66a76f90..a0481696b34 100644 --- a/reactos/dll/win32/user32/misc/winsta.c +++ b/reactos/dll/win32/user32/misc/winsta.c @@ -88,8 +88,7 @@ EnumNamesW(HWINSTA WindowStation, */ if (NULL == WindowStation && Desktops) { - SetLastError(ERROR_INVALID_HANDLE); - return FALSE; + WindowStation = GetProcessWindowStation(); } /*