Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
90681e3a
Commit
90681e3a
authored
Apr 11, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtsapi32: Implement WTSFreeMemory.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f297fd80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
wtsapi.c
dlls/wtsapi32/tests/wtsapi.c
+5
-5
wtsapi32.c
dlls/wtsapi32/wtsapi32.c
+2
-3
No files found.
dlls/wtsapi32/tests/wtsapi.c
View file @
90681e3a
...
...
@@ -47,21 +47,21 @@ static void test_WTSEnumerateProcessesW(void)
ret
=
WTSEnumerateProcessesW
(
WTS_CURRENT_SERVER_HANDLE
,
1
,
1
,
&
info
,
&
count
);
ok
(
!
ret
,
"expected WTSEnumerateProcessesW to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got: %d
\n
"
,
GetLastError
());
if
(
info
)
WTSFreeMemory
(
info
);
WTSFreeMemory
(
info
);
info
=
NULL
;
SetLastError
(
0xdeadbeef
);
ret
=
WTSEnumerateProcessesW
(
WTS_CURRENT_SERVER_HANDLE
,
0
,
0
,
&
info
,
&
count
);
ok
(
!
ret
,
"expected WTSEnumerateProcessesW to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got: %d
\n
"
,
GetLastError
());
if
(
info
)
WTSFreeMemory
(
info
);
WTSFreeMemory
(
info
);
info
=
NULL
;
SetLastError
(
0xdeadbeef
);
ret
=
WTSEnumerateProcessesW
(
WTS_CURRENT_SERVER_HANDLE
,
0
,
2
,
&
info
,
&
count
);
ok
(
!
ret
,
"expected WTSEnumerateProcessesW to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got: %d
\n
"
,
GetLastError
());
if
(
info
)
WTSFreeMemory
(
info
);
WTSFreeMemory
(
info
);
SetLastError
(
0xdeadbeef
);
ret
=
WTSEnumerateProcessesW
(
WTS_CURRENT_SERVER_HANDLE
,
0
,
1
,
NULL
,
&
count
);
...
...
@@ -73,7 +73,7 @@ static void test_WTSEnumerateProcessesW(void)
ret
=
WTSEnumerateProcessesW
(
WTS_CURRENT_SERVER_HANDLE
,
0
,
1
,
&
info
,
NULL
);
ok
(
!
ret
,
"expected WTSEnumerateProcessesW to fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"expected ERROR_INVALID_PARAMETER got: %d
\n
"
,
GetLastError
());
if
(
info
)
WTSFreeMemory
(
info
);
WTSFreeMemory
(
info
);
count
=
0
;
info
=
NULL
;
...
...
@@ -87,7 +87,7 @@ static void test_WTSEnumerateProcessesW(void)
}
todo_wine
ok
(
found
||
broken
(
!
ret
),
"process name %s not found
\n
"
,
wine_dbgstr_w
(
pname
));
if
(
info
)
WTSFreeMemory
(
info
);
WTSFreeMemory
(
info
);
}
START_TEST
(
wtsapi
)
...
...
dlls/wtsapi32/wtsapi32.c
View file @
90681e3a
...
...
@@ -22,6 +22,7 @@
#include "winbase.h"
#include "wtsapi32.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wtsapi
);
...
...
@@ -168,9 +169,7 @@ BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
*/
void
WINAPI
WTSFreeMemory
(
PVOID
pMemory
)
{
static
int
once
;
if
(
!
once
++
)
FIXME
(
"Stub %p
\n
"
,
pMemory
);
heap_free
(
pMemory
);
}
/************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment