Author: akhaldi
Date: Sat Mar 5 11:04:47 2016
New Revision: 70951
URL:
http://svn.reactos.org/svn/reactos?rev=70951&view=rev
Log:
[WTSAPI32] Sync with Wine Staging 1.9.4. CORE-10912
Modified:
trunk/reactos/dll/win32/wtsapi32/wtsapi32.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/wtsapi32/wtsapi32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wtsapi32/wtsapi3…
==============================================================================
--- trunk/reactos/dll/win32/wtsapi32/wtsapi32.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wtsapi32/wtsapi32.c [iso-8859-1] Sat Mar 5 11:04:47 2016
@@ -28,6 +28,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(wtsapi);
+/* FIXME: Inspect */
+#define GetCurrentProcessToken() ((HANDLE)~(ULONG_PTR)3)
+
/************************************************************
* WTSCloseServer (WTSAPI32.@)
@@ -311,7 +314,16 @@
BOOL WINAPI WTSQueryUserToken(ULONG session_id, PHANDLE token)
{
FIXME("%u %p\n", session_id, token);
- return FALSE;
+
+ if (!token)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
+ return DuplicateHandle(GetCurrentProcess(), GetCurrentProcessToken(),
+ GetCurrentProcess(), token,
+ 0, FALSE, DUPLICATE_SAME_ACCESS);
}
/************************************************************
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Sat Mar 5 11:04:47 2016
@@ -216,7 +216,7 @@
reactos/dll/win32/wmiutils # Synced to WineStaging-1.7.55
reactos/dll/win32/wmvcore # Synced to WineStaging-1.7.55
reactos/dll/win32/wshom.ocx # Synced to WineStaging-1.7.55
-reactos/dll/win32/wtsapi32 # Synced to WineStaging-1.7.55
+reactos/dll/win32/wtsapi32 # Synced to WineStaging-1.9.4
reactos/dll/win32/wuapi # Synced to WineStaging-1.7.55
reactos/dll/win32/xinput1_1 # Synced to WineStaging-1.7.55
reactos/dll/win32/xinput1_2 # Synced to WineStaging-1.7.55