Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
b9e10147
Commit
b9e10147
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
ntdll: NtCurrentTeb is not exported on x86_64.
parent
a518edc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/ntdll/ntdll.spec
+1
-1
1 addition, 1 deletion
dlls/ntdll/ntdll.spec
dlls/ntdll/thread.c
+4
-0
4 additions, 0 deletions
dlls/ntdll/thread.c
include/winnt.h
+1
-1
1 addition, 1 deletion
include/winnt.h
with
6 additions
and
2 deletions
dlls/ntdll/ntdll.spec
+
1
−
1
View file @
b9e10147
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
@ stdcall NtCreateTimer(ptr long ptr long)
@ stdcall NtCreateTimer(ptr long ptr long)
@ stub NtCreateToken
@ stub NtCreateToken
# @ stub NtCreateWaitablePort
# @ stub NtCreateWaitablePort
@ stdcall NtCurrentTeb()
@ stdcall
-arch=i386,sparc,alpha,powerpc
NtCurrentTeb()
# @ stub NtDebugActiveProcess
# @ stub NtDebugActiveProcess
# @ stub NtDebugContinue
# @ stub NtDebugContinue
@ stdcall NtDelayExecution(long ptr)
@ stdcall NtDelayExecution(long ptr)
...
...
This diff is collapsed.
Click to expand it.
dlls/ntdll/thread.c
+
4
−
0
View file @
b9e10147
...
@@ -1465,6 +1465,10 @@ __ASM_GLOBAL_FUNC( NtCurrentTeb, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" )
...
@@ -1465,6 +1465,10 @@ __ASM_GLOBAL_FUNC( NtCurrentTeb, ".byte 0x64\n\tmovl 0x18,%eax\n\tret" )
/* Nothing needs to be done. MS C "magically" exports the inline version from winnt.h */
/* Nothing needs to be done. MS C "magically" exports the inline version from winnt.h */
#elif defined(__x86_64__) && defined(__GNUC__)
/* not exported on x86_64 */
#else
#else
/**********************************************************************/
/**********************************************************************/
...
...
This diff is collapsed.
Click to expand it.
include/winnt.h
+
1
−
1
View file @
b9e10147
...
@@ -2261,7 +2261,7 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void)
...
@@ -2261,7 +2261,7 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void)
return
teb
;
return
teb
;
}
}
#elif defined(__x86_64__) && defined(__GNUC__)
#elif defined(__x86_64__) && defined(__GNUC__)
extern
inline
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
static
inline
struct
_TEB
*
WINAPI
NtCurrentTeb
(
void
)
{
{
struct
_TEB
*
teb
;
struct
_TEB
*
teb
;
__asm__
(
".byte 0x65
\n\t
movq (0x30),%0"
:
"=r"
(
teb
));
__asm__
(
".byte 0x65
\n\t
movq (0x30),%0"
:
"=r"
(
teb
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment