[WTSAPI32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Apr 2014 16:43:13 +0000 (16:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 26 Apr 2014 16:43:13 +0000 (16:43 +0000)
* Sync with Wine 1.7.17.
CORE-8080

svn path=/trunk/; revision=62980

reactos/dll/win32/wtsapi32/wtsapi32.c
reactos/media/doc/README.WINE

index f3410f9..067aae6 100644 (file)
@@ -87,7 +87,11 @@ BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version
     FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
           ppProcessInfo, pCount);
 
-    if (!ppProcessInfo || !pCount) return FALSE;
+    if (!ppProcessInfo || !pCount || Reserved != 0 || Version != 1)
+    {
+        SetLastError(ERROR_INVALID_PARAMETER);
+        return FALSE;
+    }
 
     *pCount = 0;
     *ppProcessInfo = NULL;
@@ -120,7 +124,9 @@ BOOL WINAPI WTSEnumerateServersW(LPWSTR pDomainName, DWORD Reserved, DWORD Versi
 BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
     PWTS_SESSION_INFOA* ppSessionInfo, DWORD* pCount)
 {
-    FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
+    static int once;
+
+    if (!once++) FIXME("Stub %p 0x%08x 0x%08x %p %p\n", hServer, Reserved, Version,
           ppSessionInfo, pCount);
 
     if (!ppSessionInfo || !pCount) return FALSE;
@@ -153,7 +159,9 @@ BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
  */
 void WINAPI WTSFreeMemory(PVOID pMemory)
 {
-    FIXME("Stub %p\n", pMemory);
+    static int once;
+
+    if (!once++) FIXME("Stub %p\n", pMemory);
 }
 
 /************************************************************
index 5b9314c..c7dbee7 100644 (file)
@@ -215,7 +215,7 @@ reactos/dll/win32/winmm/wavemap       # Forked at Wine-20050628
 reactos/dll/win32/wintrust            # Synced to Wine-1.7.17
 reactos/dll/win32/wldap32             # Synced to Wine-1.7.17
 reactos/dll/win32/wmi                 # Synced to Wine-1.7.17
-reactos/dll/win32/wtsapi32            # Synced to Wine-1.7.1
+reactos/dll/win32/wtsapi32            # Synced to Wine-1.7.17
 reactos/dll/win32/wuapi               # Synced to Wine-1.7.1
 reactos/dll/win32/xinput1_1           # Synced to Wine-1.7.1
 reactos/dll/win32/xinput1_2           # Synced to Wine-1.7.1