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
c5168261
Commit
c5168261
authored
Jul 21, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add stubs for Wow64LdrpInitialize() and Wow64SystemServiceEx().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
82d59861
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
2 deletions
+81
-2
Makefile.in
dlls/wow64/Makefile.in
+6
-0
syscall.c
dlls/wow64/syscall.c
+73
-0
wow64.spec
dlls/wow64/wow64.spec
+2
-2
No files found.
dlls/wow64/Makefile.in
View file @
c5168261
MODULE
=
wow64.dll
IMPORTLIB
=
wow64
IMPORTS
=
ntdll winecrt0
EXTRADLLFLAGS
=
-nodefaultlibs
-mno-cygwin
-Wl
,--image-base,0x6f000000
C_SRCS
=
\
syscall.c
dlls/wow64/syscall.c
0 → 100644
View file @
c5168261
/*
* WoW64 syscall wrapping
*
* Copyright 2021 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winternl.h"
#include "wine/exception.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wow
);
void
*
dummy
=
RtlUnwind
;
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
void
*
reserved
)
{
if
(
reason
==
DLL_PROCESS_ATTACH
)
LdrDisableThreadCalloutsForDll
(
inst
);
return
TRUE
;
}
void
__cdecl
__wine_spec_unimplemented_stub
(
const
char
*
module
,
const
char
*
function
)
{
EXCEPTION_RECORD
record
;
record
.
ExceptionCode
=
EXCEPTION_WINE_STUB
;
record
.
ExceptionFlags
=
EH_NONCONTINUABLE
;
record
.
ExceptionRecord
=
NULL
;
record
.
ExceptionAddress
=
__wine_spec_unimplemented_stub
;
record
.
NumberParameters
=
2
;
record
.
ExceptionInformation
[
0
]
=
(
ULONG_PTR
)
module
;
record
.
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
function
;
for
(;;)
RtlRaiseException
(
&
record
);
}
/**********************************************************************
* Wow64SystemServiceEx (NTDLL.@)
*/
NTSTATUS
WINAPI
Wow64SystemServiceEx
(
UINT
num
,
UINT
*
args
)
{
FIXME
(
"stub
\n
"
);
return
STATUS_INVALID_SYSTEM_SERVICE
;
}
/**********************************************************************
* Wow64LdrpInitialize (NTDLL.@)
*/
void
WINAPI
Wow64LdrpInitialize
(
CONTEXT
*
context
)
{
FIXME
(
"stub
\n
"
);
}
dlls/wow64/wow64.spec
View file @
c5168261
...
...
@@ -10,7 +10,7 @@
@ stub Wow64IsControlFlowGuardEnforced
@ stub Wow64IsStackExtentsCheckEnforced
@ stub Wow64KiUserCallbackDispatcher
@ st
ub Wow64LdrpInitialize
@ st
dcall Wow64LdrpInitialize(ptr)
@ stub Wow64LogPrint
@ stub Wow64NotifyUnsimulateComplete
@ stub Wow64PassExceptionToGuest
...
...
@@ -22,6 +22,6 @@
@ stub Wow64ShallowThunkSIZE_T32TO64
@ stub Wow64ShallowThunkSIZE_T64TO32
@ stub Wow64SuspendLocalThread
@ st
ub Wow64SystemServiceEx
@ st
dcall -norelay Wow64SystemServiceEx(long ptr)
@ stub Wow64ValidateUserCallTarget
@ stub Wow64ValidateUserCallTargetFilter
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