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
c94e646f
Commit
c94e646f
authored
Mar 26, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed invalid use of -1 length in WideCharToMultiByte calls.
parent
4a46a019
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
editor.c
dlls/mshtml/editor.c
+1
-6
install.c
dlls/mshtml/install.c
+2
-5
persist.c
dlls/mshtml/persist.c
+1
-1
No files found.
dlls/mshtml/editor.c
View file @
c94e646f
...
...
@@ -559,7 +559,6 @@ static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
if
(
in
)
{
char
*
stra
;
DWORD
len
;
if
(
V_VT
(
in
)
!=
VT_BSTR
)
{
FIXME
(
"Unsupported vt=%d
\n
"
,
V_VT
(
out
));
...
...
@@ -568,12 +567,8 @@ static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
TRACE
(
"%s
\n
"
,
debugstr_w
(
V_BSTR
(
in
)));
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
V_BSTR
(
in
),
-
1
,
NULL
,
0
,
NULL
,
NULL
);
stra
=
heap_alloc
(
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
V_BSTR
(
in
),
-
1
,
stra
,
-
1
,
NULL
,
NULL
);
stra
=
heap_strdupWtoA
(
V_BSTR
(
in
));
set_ns_fontname
(
This
->
nscontainer
,
stra
);
heap_free
(
stra
);
update_doc
(
This
,
UPDATE_UI
);
...
...
dlls/mshtml/install.c
View file @
c94e646f
...
...
@@ -135,7 +135,7 @@ static BOOL install_cab(LPCWSTR file_name)
char
install_dir
[
MAX_PATH
];
HRESULT
(
WINAPI
*
pExtractFilesA
)(
LPCSTR
,
LPCSTR
,
DWORD
,
LPCSTR
,
LPVOID
,
DWORD
);
LPSTR
file_name_a
;
DWORD
res
,
len
;
DWORD
res
;
HRESULT
hres
;
static
const
WCHAR
wszAdvpack
[]
=
{
'a'
,
'd'
,
'v'
,
'p'
,
'a'
,
'c'
,
'k'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
...
...
@@ -160,11 +160,8 @@ static BOOL install_cab(LPCWSTR file_name)
advpack
=
LoadLibraryW
(
wszAdvpack
);
pExtractFilesA
=
(
void
*
)
GetProcAddress
(
advpack
,
"ExtractFiles"
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
file_name
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
file_name_a
=
heap_alloc
(
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
file_name
,
-
1
,
file_name_a
,
-
1
,
NULL
,
NULL
);
/* FIXME: Use unicode version (not yet implemented) */
file_name_a
=
heap_strdupWtoA
(
file_name
);
hres
=
pExtractFilesA
(
file_name_a
,
install_dir
,
0
,
NULL
,
NULL
,
0
);
FreeLibrary
(
advpack
);
heap_free
(
file_name_a
);
...
...
dlls/mshtml/persist.c
View file @
c94e646f
...
...
@@ -134,7 +134,7 @@ static nsIInputStream *get_post_data_stream(IBindCtx *bctx)
data
=
heap_alloc
(
headers_len
+
post_len
+
sizeof
(
content_length
)
+
8
);
if
(
headers_len
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
headers
,
-
1
,
data
,
-
1
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
headers
,
-
1
,
data
,
headers_len
,
NULL
,
NULL
);
len
=
fix_headers
(
data
,
post_len
);
}
...
...
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