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
62901e6e
Commit
62901e6e
authored
Mar 07, 2012
by
Thomas Faber
Committed by
Alexandre Julliard
Mar 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Fix build with MSVC.
parent
44feaf9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
memory.c
dlls/msvcp90/memory.c
+3
-3
string.c
dlls/msvcp90/string.c
+5
-5
No files found.
dlls/msvcp90/memory.c
View file @
62901e6e
...
...
@@ -80,7 +80,7 @@ void __thiscall MSVCP_allocator_char_deallocate(void *this, char *ptr, MSVCP_siz
DEFINE_THISCALL_WRAPPER
(
MSVCP_allocator_char_allocate
,
8
)
char
*
__thiscall
MSVCP_allocator_char_allocate
(
void
*
this
,
MSVCP_size_t
count
)
{
return
MSVCRT_operator_new
(
sizeof
(
char
[
count
])
);
return
MSVCRT_operator_new
(
count
);
}
/* ?allocate@?$allocator@D@std@@QAEPADIPBX@Z */
...
...
@@ -177,7 +177,7 @@ wchar_t* __thiscall MSVCP_allocator_wchar_allocate(void *this, MSVCP_size_t coun
return
NULL
;
}
return
MSVCRT_operator_new
(
sizeof
(
wchar_t
[
count
]
));
return
MSVCRT_operator_new
(
count
*
sizeof
(
wchar_t
));
}
/* ?allocate@?$allocator@_W@std@@QAEPA_WIPBX@Z */
...
...
@@ -276,7 +276,7 @@ unsigned short* __thiscall MSVCP_allocator_short_allocate(
return
NULL
;
}
return
MSVCRT_operator_new
(
sizeof
(
unsigned
short
[
count
]
));
return
MSVCRT_operator_new
(
count
*
sizeof
(
unsigned
short
));
}
/* ?allocate@?$allocator@G@std@@QAEPAGIPBX@Z */
...
...
dlls/msvcp90/string.c
View file @
62901e6e
...
...
@@ -215,7 +215,7 @@ MSVCP_bool CDECL MSVCP_char_traits_wchar_lt(const wchar_t *ch1,
int
CDECL
MSVCP_char_traits_wchar_compare
(
const
wchar_t
*
s1
,
const
wchar_t
*
s2
,
MSVCP_size_t
count
)
{
int
ret
=
memcmp
(
s1
,
s2
,
sizeof
(
wchar_t
[
count
]
));
int
ret
=
memcmp
(
s1
,
s2
,
count
*
sizeof
(
wchar_t
));
return
(
ret
>
0
?
1
:
(
ret
<
0
?
-
1
:
0
));
}
...
...
@@ -238,7 +238,7 @@ wchar_t* CDECL MSVCP_char_traits_wchar__Copy_s(wchar_t *dest,
return
dest
;
}
return
memcpy
(
dest
,
src
,
sizeof
(
wchar_t
[
count
]
));
return
memcpy
(
dest
,
src
,
count
*
sizeof
(
wchar_t
));
}
/* ?copy@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
...
...
@@ -275,7 +275,7 @@ wchar_t* CDECL MSVCP_char_traits_wchar__Move_s(wchar_t *dest,
return
dest
;
}
return
memmove
(
dest
,
src
,
sizeof
(
WCHAR
[
count
]
));
return
memmove
(
dest
,
src
,
count
*
sizeof
(
WCHAR
));
}
/* ?move@?$char_traits@_W@std@@SAPA_WPA_WPB_WI@Z */
...
...
@@ -395,7 +395,7 @@ unsigned short * CDECL MSVCP_char_traits_short__Copy_s(unsigned short *dest,
return
dest
;
}
return
memcpy
(
dest
,
src
,
sizeof
(
unsigned
short
[
count
]
));
return
memcpy
(
dest
,
src
,
count
*
sizeof
(
unsigned
short
));
}
/* ?copy@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
...
...
@@ -430,7 +430,7 @@ unsigned short* CDECL MSVCP_char_traits_short__Move_s(unsigned short *dest,
return
dest
;
}
return
memmove
(
dest
,
src
,
sizeof
(
unsigned
short
[
count
]
));
return
memmove
(
dest
,
src
,
count
*
sizeof
(
unsigned
short
));
}
/* ?move@?$char_traits@G@std@@SAPAGPAGPBGI@Z */
...
...
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