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
b76efcb6
Commit
b76efcb6
authored
Aug 23, 2007
by
Bryan DeGrendel
Committed by
Alexandre Julliard
Aug 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Return S_OK if mono runtime is found.
parent
758539c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
44 deletions
+52
-44
mscoree_main.c
dlls/mscoree/mscoree_main.c
+52
-44
No files found.
dlls/mscoree/mscoree_main.c
View file @
b76efcb6
...
...
@@ -34,50 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mscoree
);
HRESULT
WINAPI
CorBindToRuntimeHost
(
LPCWSTR
pwszVersion
,
LPCWSTR
pwszBuildFlavor
,
LPCWSTR
pwszHostConfigFile
,
VOID
*
pReserved
,
DWORD
startupFlags
,
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
FIXME
(
"(%s, %s, %s, %p, %d, %p, %p, %p): stub!
\n
"
,
debugstr_w
(
pwszVersion
),
debugstr_w
(
pwszBuildFlavor
),
debugstr_w
(
pwszHostConfigFile
),
pReserved
,
startupFlags
,
rclsid
,
riid
,
ppv
);
return
E_FAIL
;
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(%p, %d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
break
;
}
return
TRUE
;
}
BOOL
WINAPI
_CorDllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
FIXME
(
"(%p, %d, %p): stub
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
break
;
}
return
TRUE
;
}
static
LPWSTR
get_mono_exe
(
void
)
{
static
const
WCHAR
mono_exe
[]
=
{
'b'
,
'i'
,
'n'
,
'\\'
,
'm'
,
'o'
,
'n'
,
'o'
,
'.'
,
'e'
,
'x'
,
'e'
,
' '
,
0
};
...
...
@@ -126,6 +82,58 @@ static LPWSTR get_mono_exe(void)
return
ret
;
}
HRESULT
WINAPI
CorBindToRuntimeHost
(
LPCWSTR
pwszVersion
,
LPCWSTR
pwszBuildFlavor
,
LPCWSTR
pwszHostConfigFile
,
VOID
*
pReserved
,
DWORD
startupFlags
,
REFCLSID
rclsid
,
REFIID
riid
,
LPVOID
*
ppv
)
{
WCHAR
*
mono_exe
;
FIXME
(
"(%s, %s, %s, %p, %d, %p, %p, %p): semi-stub!
\n
"
,
debugstr_w
(
pwszVersion
),
debugstr_w
(
pwszBuildFlavor
),
debugstr_w
(
pwszHostConfigFile
),
pReserved
,
startupFlags
,
rclsid
,
riid
,
ppv
);
if
(
!
(
mono_exe
=
get_mono_exe
()))
{
MESSAGE
(
"wine: Install the Windows version of Mono to run .NET executables
\n
"
);
return
E_FAIL
;
}
return
S_OK
;
}
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(%p, %d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
break
;
}
return
TRUE
;
}
BOOL
WINAPI
_CorDllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
FIXME
(
"(%p, %d, %p): stub
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
break
;
}
return
TRUE
;
}
__int32
WINAPI
_CorExeMain
(
void
)
{
STARTUPINFOW
si
;
...
...
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