- Fix 2 user32 winstation test failures (patch by Giannis Adamopoulos johnyadams...
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 17 Sep 2009 15:25:36 +0000 (15:25 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Thu, 17 Sep 2009 15:25:36 +0000 (15:25 +0000)
- Test results verified by Amine Khaldi

svn path=/trunk/; revision=43063

reactos/dll/win32/user32/misc/winsta.c

index d6c66a7..a048169 100644 (file)
@@ -88,8 +88,7 @@ EnumNamesW(HWINSTA WindowStation,
     */
    if (NULL == WindowStation && Desktops)
    {
-      SetLastError(ERROR_INVALID_HANDLE);
-      return FALSE;
+      WindowStation = GetProcessWindowStation();
    }
 
    /*