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
0e42073c
Commit
0e42073c
authored
Jun 30, 2004
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jun 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HeapAlloc for WSTR must allocate len* sizeof(WCHARS).
parent
4679e784
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+1
-1
imm.c
dlls/imm32/imm.c
+2
-2
wnet.c
dlls/mpr/wnet.c
+1
-1
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
0e42073c
...
...
@@ -47,7 +47,7 @@ HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD data)
DWORD
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
);
HWND
result
;
wfile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
wfile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
wfile
,
len
);
result
=
HtmlHelpW
(
caller
,
wfile
,
command
,
data
);
...
...
dlls/imm32/imm.c
View file @
0e42073c
...
...
@@ -1265,14 +1265,14 @@ BOOL WINAPI ImmSetCompositionStringA(
comp_len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpComp
,
dwCompLen
,
NULL
,
0
);
if
(
comp_len
)
{
CompBuffer
=
(
WCHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
comp_len
);
CompBuffer
=
(
WCHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
comp_len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpComp
,
dwCompLen
,
CompBuffer
,
comp_len
);
}
read_len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpRead
,
dwReadLen
,
NULL
,
0
);
if
(
read_len
)
{
ReadBuffer
=
(
WCHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
read_len
);
ReadBuffer
=
(
WCHAR
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
read_len
*
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpRead
,
dwReadLen
,
ReadBuffer
,
read_len
);
}
...
...
dlls/mpr/wnet.c
View file @
0e42073c
...
...
@@ -1540,7 +1540,7 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
if
(
len
)
{
PWSTR
wideLocalName
=
(
PWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
PWSTR
wideLocalName
=
(
PWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
if
(
wideLocalName
)
{
...
...
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