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
e40d0286
Commit
e40d0286
authored
Aug 18, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Fixed buffer allocation in basic_stringbuf<wchar> class.
parent
3a2de10a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ios.c
dlls/msvcp100/ios.c
+2
-2
ios.c
dlls/msvcp90/ios.c
+2
-2
No files found.
dlls/msvcp100/ios.c
View file @
e40d0286
...
...
@@ -3946,7 +3946,7 @@ void __thiscall basic_stringbuf_wchar__Init(basic_stringbuf_wchar *this, const w
this
->
seekhigh
=
NULL
;
if
(
count
&&
str
)
{
wchar_t
*
buf
=
MSVCRT_operator_new
(
count
);
wchar_t
*
buf
=
MSVCRT_operator_new
(
count
*
sizeof
(
wchar_t
)
);
if
(
!
buf
)
{
ERR
(
"Out of memory
\n
"
);
throw_exception
(
EXCEPTION_BAD_ALLOC
,
NULL
);
...
...
@@ -4120,7 +4120,7 @@ unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar *
oldsize
=
(
ptr
?
basic_streambuf_wchar_epptr
(
&
this
->
base
)
-
basic_streambuf_wchar_eback
(
&
this
->
base
)
:
0
);
size
=
oldsize
|
0xf
;
size
+=
size
/
2
;
buf
=
MSVCRT_operator_new
(
size
);
buf
=
MSVCRT_operator_new
(
size
*
sizeof
(
wchar_t
)
);
if
(
!
buf
)
{
ERR
(
"Out of memory
\n
"
);
throw_exception
(
EXCEPTION_BAD_ALLOC
,
NULL
);
...
...
dlls/msvcp90/ios.c
View file @
e40d0286
...
...
@@ -3932,7 +3932,7 @@ void __thiscall basic_stringbuf_wchar__Init(basic_stringbuf_wchar *this, const w
this
->
seekhigh
=
NULL
;
if
(
count
&&
str
)
{
wchar_t
*
buf
=
MSVCRT_operator_new
(
count
);
wchar_t
*
buf
=
MSVCRT_operator_new
(
count
*
sizeof
(
wchar_t
)
);
if
(
!
buf
)
{
ERR
(
"Out of memory
\n
"
);
throw_exception
(
EXCEPTION_BAD_ALLOC
,
NULL
);
...
...
@@ -4106,7 +4106,7 @@ unsigned short __thiscall basic_stringbuf_wchar_overflow(basic_stringbuf_wchar *
oldsize
=
(
ptr
?
basic_streambuf_wchar_epptr
(
&
this
->
base
)
-
basic_streambuf_wchar_eback
(
&
this
->
base
)
:
0
);
size
=
oldsize
|
0xf
;
size
+=
size
/
2
;
buf
=
MSVCRT_operator_new
(
size
);
buf
=
MSVCRT_operator_new
(
size
*
sizeof
(
wchar_t
)
);
if
(
!
buf
)
{
ERR
(
"Out of memory
\n
"
);
throw_exception
(
EXCEPTION_BAD_ALLOC
,
NULL
);
...
...
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