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
d4eefeba
Commit
d4eefeba
authored
Jul 15, 2000
by
Hidenori Takeshima
Committed by
Alexandre Julliard
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for supporting DBCS.
parent
e63a40ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
heap.c
memory/heap.c
+5
-2
No files found.
memory/heap.c
View file @
d4eefeba
...
...
@@ -19,6 +19,7 @@
#include "heap.h"
#include "toolhelp.h"
#include "debugtools.h"
#include "winnls.h"
DEFAULT_DEBUG_CHANNEL
(
heap
);
...
...
@@ -1688,12 +1689,14 @@ LPWSTR HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str )
LPSTR
HEAP_strdupWtoA
(
HANDLE
heap
,
DWORD
flags
,
LPCWSTR
str
)
{
LPSTR
ret
;
INT
len
;
if
(
!
str
)
return
NULL
;
ret
=
HeapAlloc
(
heap
,
flags
,
lstrlenW
(
str
)
+
1
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
ret
=
HeapAlloc
(
heap
,
flags
,
len
);
if
(
ret
)
{
SET_EIP
(
ret
);
lstrcpyWtoA
(
ret
,
str
);
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
,
NULL
,
NULL
);
}
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