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
ec936350
Commit
ec936350
authored
Oct 23, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed multibyte handling in HEAP_strdupAtoW.
parent
588ee356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
heap.c
memory/heap.c
+5
-3
No files found.
memory/heap.c
View file @
ec936350
...
...
@@ -1678,7 +1678,7 @@ LPSTR HEAP_strdupA( HANDLE heap, DWORD flags, LPCSTR str )
*/
LPWSTR
HEAP_strdupW
(
HANDLE
heap
,
DWORD
flags
,
LPCWSTR
str
)
{
INT
len
=
l
strlenW
(
str
)
+
1
;
INT
len
=
strlenW
(
str
)
+
1
;
LPWSTR
p
=
HeapAlloc
(
heap
,
flags
,
len
*
sizeof
(
WCHAR
)
);
if
(
p
)
{
SET_EIP
(
p
);
...
...
@@ -1694,12 +1694,14 @@ LPWSTR HEAP_strdupW( HANDLE heap, DWORD flags, LPCWSTR str )
LPWSTR
HEAP_strdupAtoW
(
HANDLE
heap
,
DWORD
flags
,
LPCSTR
str
)
{
LPWSTR
ret
;
INT
len
;
if
(
!
str
)
return
NULL
;
ret
=
HeapAlloc
(
heap
,
flags
,
(
strlen
(
str
)
+
1
)
*
sizeof
(
WCHAR
)
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
ret
=
HeapAlloc
(
heap
,
flags
,
len
*
sizeof
(
WCHAR
)
);
if
(
ret
)
{
SET_EIP
(
ret
);
lstrcpyAtoW
(
ret
,
str
);
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
);
}
return
ret
;
}
...
...
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