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
e4faa129
Commit
e4faa129
authored
Dec 01, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Make sure that last error doesn't get set during thread cleanup.
parent
60efdd55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
clipboard.c
server/clipboard.c
+4
-2
hook.c
server/hook.c
+3
-2
process.c
server/process.c
+2
-0
No files found.
server/clipboard.c
View file @
e4faa129
...
...
@@ -30,6 +30,7 @@
#define WIN32_NO_STATUS
#include "request.h"
#include "object.h"
#include "process.h"
#include "user.h"
#include "winuser.h"
#include "winternl.h"
...
...
@@ -112,9 +113,10 @@ static struct clipboard *get_process_clipboard(void)
void
cleanup_clipboard_thread
(
struct
thread
*
thread
)
{
struct
clipboard
*
clipboard
;
struct
winstation
*
winstation
=
get_process_winstation
(
thread
->
process
,
WINSTA_ACCESSCLIPBOARD
)
;
struct
winstation
*
winstation
;
if
(
!
winstation
)
return
;
if
(
!
thread
->
process
->
winstation
)
return
;
if
(
!
(
winstation
=
get_process_winstation
(
thread
->
process
,
WINSTA_ACCESSCLIPBOARD
)))
return
;
if
((
clipboard
=
winstation
->
clipboard
))
{
...
...
server/hook.c
View file @
e4faa129
...
...
@@ -114,9 +114,10 @@ static struct hook_table *alloc_hook_table(void)
static
struct
hook_table
*
get_global_hooks
(
struct
thread
*
thread
)
{
struct
hook_table
*
table
;
struct
desktop
*
desktop
=
get_thread_desktop
(
thread
,
0
)
;
struct
desktop
*
desktop
;
if
(
!
desktop
)
return
NULL
;
if
(
!
thread
->
desktop
)
return
NULL
;
if
(
!
(
desktop
=
get_thread_desktop
(
thread
,
0
)))
return
NULL
;
table
=
desktop
->
global_hooks
;
release_object
(
desktop
);
return
table
;
...
...
server/process.c
View file @
e4faa129
...
...
@@ -632,6 +632,8 @@ static void process_killed( struct process *process )
handles
=
process
->
handles
;
process
->
handles
=
NULL
;
if
(
handles
)
release_object
(
handles
);
process
->
winstation
=
0
;
process
->
desktop
=
0
;
/* close the console attached to this process, if any */
free_console
(
process
);
...
...
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