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
40aa4dc4
Commit
40aa4dc4
authored
Apr 26, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr90: Added _recalloc implementation.
parent
32b1f25f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.c
dlls/msvcr90/msvcr90.c
+27
-0
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
No files found.
dlls/msvcr80/msvcr80.spec
View file @
40aa4dc4
...
...
@@ -837,7 +837,7 @@
@ stub _pwctype
@ cdecl _read(long ptr long) msvcrt._read
@ stub _realloc_crt
@
stub
_recalloc
@
cdecl _recalloc(ptr long long) msvcr90.
_recalloc
@ stub _recalloc_crt
@ stub _resetstkoflw
@ cdecl _rmdir(str) msvcrt._rmdir
...
...
dlls/msvcr90/msvcr90.c
View file @
40aa4dc4
...
...
@@ -21,6 +21,8 @@
#include <stdarg.h>
#include "stdlib.h"
#include "errno.h"
#include "malloc.h"
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
...
...
@@ -131,3 +133,28 @@ void CDECL __clean_type_info_names_internal(void *p)
{
FIXME
(
"(%p) stub
\n
"
,
p
);
}
/*********************************************************************
* _recalloc (MSVCR90.@)
*/
void
*
CDECL
_recalloc
(
void
*
mem
,
size_t
num
,
size_t
size
)
{
size_t
old_size
;
void
*
ret
;
if
(
!
mem
)
return
calloc
(
num
,
size
);
size
=
num
*
size
;
old_size
=
_msize
(
mem
);
ret
=
realloc
(
mem
,
size
);
if
(
!
ret
)
{
*
_errno
()
=
ENOMEM
;
return
NULL
;
}
if
(
size
>
old_size
)
memset
((
BYTE
*
)
mem
+
old_size
,
0
,
size
-
old_size
);
return
ret
;
}
dlls/msvcr90/msvcr90.spec
View file @
40aa4dc4
...
...
@@ -823,7 +823,7 @@
@ stub _pwctype
@ cdecl _read(long ptr long) msvcrt._read
@ stub _realloc_crt
@
stub _recalloc
@
cdecl _recalloc(ptr long long)
@ stub _recalloc_crt
@ stub _resetstkoflw
@ cdecl _rmdir(str) msvcrt._rmdir
...
...
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