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
f0a1c2f7
Commit
f0a1c2f7
authored
Sep 20, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Sep 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create thunk for CreateThread16 proc, call it directly.
parent
f4edf237
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
thread.c
scheduler/thread.c
+25
-0
No files found.
scheduler/thread.c
View file @
f0a1c2f7
...
...
@@ -27,6 +27,7 @@
#include "server.h"
#include "services.h"
#include "stackframe.h"
#include "builtin16.h"
#include "debugtools.h"
#include "queue.h"
#include "hook.h"
...
...
@@ -307,6 +308,30 @@ HANDLE WINAPI CreateThread( SECURITY_ATTRIBUTES *sa, DWORD stack,
return
handle
;
}
/***********************************************************************
* CreateThread16 (KERNEL.441)
*/
static
DWORD
CALLBACK
THREAD_StartThread16
(
LPVOID
threadArgs
)
{
FARPROC16
start
=
((
FARPROC16
*
)
threadArgs
)[
0
];
DWORD
param
=
((
DWORD
*
)
threadArgs
)[
1
];
HeapFree
(
GetProcessHeap
(),
0
,
threadArgs
);
((
LPDWORD
)
CURRENT_STACK16
)[
-
1
]
=
param
;
return
CallTo16Long
(
start
,
sizeof
(
DWORD
)
);
}
HANDLE
WINAPI
CreateThread16
(
SECURITY_ATTRIBUTES
*
sa
,
DWORD
stack
,
FARPROC16
start
,
SEGPTR
param
,
DWORD
flags
,
LPDWORD
id
)
{
DWORD
*
threadArgs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
2
*
sizeof
(
DWORD
)
);
if
(
!
threadArgs
)
return
INVALID_HANDLE_VALUE
;
threadArgs
[
0
]
=
(
DWORD
)
start
;
threadArgs
[
1
]
=
(
DWORD
)
param
;
return
CreateThread
(
sa
,
stack
,
THREAD_StartThread16
,
threadArgs
,
flags
,
id
);
}
/***********************************************************************
* ExitThread [KERNEL32.215] Ends a thread
...
...
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