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
263a1448
Commit
263a1448
authored
Dec 26, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp: Don't assume that msvcrt is imported.
parent
db0a6fca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
locale.c
dlls/msvcp90/locale.c
+4
-1
msvcp_main.c
dlls/msvcp90/msvcp_main.c
+6
-1
No files found.
dlls/msvcp90/locale.c
View file @
263a1448
...
...
@@ -1410,8 +1410,11 @@ void __thiscall ctype_char__Tidy(ctype_char *this)
/* ?classic_table@?$ctype@D@std@@KAPEBFXZ */
const
short
*
__cdecl
ctype_char_classic_table
(
void
)
{
ctype_char
*
ctype
;
TRACE
(
"()
\n
"
);
return
&
((
short
*
)
GetProcAddress
(
GetModuleHandleA
(
"msvcrt.dll"
),
"_ctype"
))[
1
];
ctype
=
ctype_char_use_facet
(
locale_classic
()
);
return
ctype
->
ctype
.
table
;
}
/* ??0?$ctype@D@std@@QAE@ABV_Locinfo@1@I@Z */
...
...
dlls/msvcp90/msvcp_main.c
View file @
263a1448
...
...
@@ -60,9 +60,14 @@ void* (__cdecl *MSVCRT_operator_new)(MSVCP_size_t);
void
(
__cdecl
*
MSVCRT_operator_delete
)(
void
*
);
void
*
(
__cdecl
*
MSVCRT_set_new_handler
)(
void
*
);
#define VERSION_STRING(ver) #ver
#define MSVCRT_NAME(ver) "msvcr" VERSION_STRING(ver) ".dll"
static
void
init_cxx_funcs
(
void
)
{
HMODULE
hmod
=
GetModuleHandleA
(
"msvcrt.dll"
);
HMODULE
hmod
=
GetModuleHandleA
(
MSVCRT_NAME
(
_MSVCP_VER
)
);
if
(
!
hmod
)
FIXME
(
"%s not loaded
\n
"
,
MSVCRT_NAME
(
_MSVCP_VER
)
);
if
(
sizeof
(
void
*
)
>
sizeof
(
int
))
/* 64-bit has different names */
{
...
...
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