Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
25bb3b0b
Commit
25bb3b0b
authored
Nov 20, 2018
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Add _o_malloc implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
78ef7515
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
api-ms-win-crt-private-l1-1-0.spec
...win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
+1
-1
misc.c
dlls/ucrtbase/tests/misc.c
+21
-0
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+1
-1
No files found.
dlls/api-ms-win-crt-private-l1-1-0/api-ms-win-crt-private-l1-1-0.spec
View file @
25bb3b0b
...
...
@@ -1015,7 +1015,7 @@
@ stub _o_lround
@ stub _o_lroundf
@ stub _o_lroundl
@
stub
_o_malloc
@
cdecl _o_malloc(long) ucrtbase.
_o_malloc
@ stub _o_mblen
@ stub _o_mbrlen
@ stub _o_mbrtoc16
...
...
dlls/ucrtbase/tests/misc.c
View file @
25bb3b0b
...
...
@@ -136,6 +136,9 @@ static int (__cdecl *p_crt_at_quick_exit)(void (__cdecl *func)(void));
static
void
(
__cdecl
*
p_quick_exit
)(
int
exitcode
);
static
int
(
__cdecl
*
p__stat32
)(
const
char
*
,
struct
_stat32
*
buf
);
static
int
(
__cdecl
*
p__close
)(
int
);
static
void
*
(
__cdecl
*
p__o_malloc
)(
size_t
);
static
size_t
(
__cdecl
*
p__msize
)(
void
*
);
static
void
(
__cdecl
*
p_free
)(
void
*
);
static
void
test__initialize_onexit_table
(
void
)
{
...
...
@@ -496,6 +499,9 @@ static BOOL init(void)
p_quick_exit
=
(
void
*
)
GetProcAddress
(
module
,
"quick_exit"
);
p__stat32
=
(
void
*
)
GetProcAddress
(
module
,
"_stat32"
);
p__close
=
(
void
*
)
GetProcAddress
(
module
,
"_close"
);
p__o_malloc
=
(
void
*
)
GetProcAddress
(
module
,
"_o_malloc"
);
p__msize
=
(
void
*
)
GetProcAddress
(
module
,
"_msize"
);
p_free
=
(
void
*
)
GetProcAddress
(
module
,
"free"
);
return
TRUE
;
}
...
...
@@ -1034,6 +1040,20 @@ static void test__stat32(void)
}
}
static
void
test__o_malloc
(
void
)
{
void
*
m
;
size_t
s
;
m
=
p__o_malloc
(
1
);
ok
(
m
!=
NULL
,
"p__o_malloc(1) returned NULL
\n
"
);
s
=
p__msize
(
m
);
ok
(
s
==
1
,
"_msize returned %d
\n
"
,
(
int
)
s
);
p_free
(
m
);
}
START_TEST
(
misc
)
{
int
arg_c
;
...
...
@@ -1068,4 +1088,5 @@ START_TEST(misc)
test_exit
(
arg_v
[
0
]);
test_quick_exit
(
arg_v
[
0
]);
test__stat32
();
test__o_malloc
();
}
dlls/ucrtbase/ucrtbase.spec
View file @
25bb3b0b
...
...
@@ -1706,7 +1706,7 @@
@ stub _o_lround
@ stub _o_lroundf
@ stub _o_lroundl
@
stub _o
_malloc
@
cdecl _o_malloc(long) MSVCRT
_malloc
@ stub _o_mblen
@ stub _o_mbrlen
@ stub _o_mbrtoc16
...
...
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