[WTSAPI32] Sync with Wine Staging 1.9.4. CORE-10912

svn path=/trunk/; revision=70951
This commit is contained in:
Amine Khaldi 2016-03-05 11:04:47 +00:00
parent eff9d67cf2
commit 15e3e7fd28
2 changed files with 14 additions and 2 deletions

View file

@ -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 WTSQuerySessionInformationW(
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);
}
/************************************************************

View file

@ -216,7 +216,7 @@ reactos/dll/win32/wmi # Synced to WineStaging-1.7.55
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