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
a0a9b8fe
Commit
a0a9b8fe
authored
Mar 23, 2017
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add ExternalContextBase::GetId implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3dff8b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
scheduler.c
dlls/msvcrt/scheduler.c
+7
-2
No files found.
dlls/msvcrt/scheduler.c
View file @
a0a9b8fe
...
...
@@ -33,6 +33,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
static
int
context_id
=
-
1
;
#ifdef __i386__
#define DEFINE_VTBL_WRAPPER(off) \
...
...
@@ -64,6 +66,7 @@ typedef struct {
typedef
struct
{
Context
context
;
unsigned
int
id
;
}
ExternalContextBase
;
extern
const
vtable_ptr
MSVCRT_ExternalContextBase_vtable
;
static
void
ExternalContextBase_ctor
(
ExternalContextBase
*
);
...
...
@@ -168,8 +171,8 @@ unsigned int __cdecl Context_VirtualProcessorId(void)
DEFINE_THISCALL_WRAPPER
(
ExternalContextBase_GetId
,
4
)
unsigned
int
__thiscall
ExternalContextBase_GetId
(
const
ExternalContextBase
*
this
)
{
FIXME
(
"(%p)->() stub
\n
"
,
this
);
return
-
1
;
TRACE
(
"(%p)->()
\n
"
,
this
);
return
this
->
id
;
}
DEFINE_THISCALL_WRAPPER
(
ExternalContextBase_GetVirtualProcessorId
,
4
)
...
...
@@ -225,7 +228,9 @@ Context* __thiscall ExternalContextBase_vector_dtor(ExternalContextBase *this, u
static
void
ExternalContextBase_ctor
(
ExternalContextBase
*
this
)
{
TRACE
(
"(%p)->()
\n
"
,
this
);
this
->
context
.
vtable
=
&
MSVCRT_ExternalContextBase_vtable
;
this
->
id
=
InterlockedIncrement
(
&
context_id
);
}
extern
const
vtable_ptr
MSVCRT_type_info_vtable
;
...
...
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