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
559649c4
Commit
559649c4
authored
Dec 17, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Remove not used argument in nsAString_GetData.
parent
72d09710
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
34 additions
and
34 deletions
+34
-34
editor.c
dlls/mshtml/editor.c
+3
-3
htmlbody.c
dlls/mshtml/htmlbody.c
+1
-1
htmldoc5.c
dlls/mshtml/htmldoc5.c
+1
-1
htmlelem.c
dlls/mshtml/htmlelem.c
+7
-7
htmlelem2.c
dlls/mshtml/htmlelem2.c
+1
-1
htmlinput.c
dlls/mshtml/htmlinput.c
+3
-3
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-1
htmloption.c
dlls/mshtml/htmloption.c
+2
-2
htmlselect.c
dlls/mshtml/htmlselect.c
+2
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+2
-2
htmltextarea.c
dlls/mshtml/htmltextarea.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-1
nsembed.c
dlls/mshtml/nsembed.c
+2
-2
nsservice.c
dlls/mshtml/nsservice.c
+1
-1
persist.c
dlls/mshtml/persist.c
+1
-1
txtrange.c
dlls/mshtml/txtrange.c
+4
-4
No files found.
dlls/mshtml/editor.c
View file @
559649c4
...
...
@@ -253,7 +253,7 @@ static void remove_child_attr(nsIDOMElement *elem, LPCWSTR tag, nsAString *attr_
nsAString_Init
(
&
tag_str
,
NULL
);
nsIDOMElement_GetTagName
(
child_elem
,
&
tag_str
);
nsAString_GetData
(
&
tag_str
,
&
ctag
,
NULL
);
nsAString_GetData
(
&
tag_str
,
&
ctag
);
if
(
!
strcmpiW
(
ctag
,
tag
))
/* FIXME: remove node if there are no more attributes */
...
...
@@ -300,7 +300,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
nsAString_Init
(
&
tag_str
,
NULL
);
nsIDOMElement_GetTagName
(
elem
,
&
tag_str
);
nsAString_GetData
(
&
tag_str
,
&
tag
,
NULL
);
nsAString_GetData
(
&
tag_str
,
&
tag
);
if
(
!
strcmpiW
(
tag
,
wszFont
))
{
nsAString
size_str
,
val_str
;
...
...
@@ -312,7 +312,7 @@ static void get_font_size(HTMLDocument *This, WCHAR *ret)
nsAString_Init
(
&
val_str
,
NULL
);
nsIDOMElement_GetAttribute
(
elem
,
&
size_str
,
&
val_str
);
nsAString_GetData
(
&
val_str
,
&
val
,
NULL
);
nsAString_GetData
(
&
val_str
,
&
val
);
if
(
*
val
)
{
TRACE
(
"found size %s
\n
"
,
debugstr_w
(
val
));
...
...
dlls/mshtml/htmlbody.c
View file @
559649c4
...
...
@@ -126,7 +126,7 @@ static HRESULT WINAPI HTMLBodyElement_get_background(IHTMLBodyElement *iface, BS
nsres
=
nsIDOMHTMLBodyElement_GetBackground
(
This
->
nsbody
,
&
background_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
background
;
nsAString_GetData
(
&
background_str
,
&
background
,
NULL
);
nsAString_GetData
(
&
background_str
,
&
background
);
*
p
=
*
background
?
SysAllocString
(
background
)
:
NULL
;
}
else
{
ERR
(
"GetBackground failed: %08x
\n
"
,
nsres
);
...
...
dlls/mshtml/htmldoc5.c
View file @
559649c4
...
...
@@ -243,7 +243,7 @@ static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR *
nsIDOMNSHTMLDocument_GetCompatMode
(
nshtmldoc
,
&
mode_str
);
nsIDOMNSHTMLDocument_Release
(
nshtmldoc
);
nsAString_GetData
(
&
mode_str
,
&
mode
,
NULL
);
nsAString_GetData
(
&
mode_str
,
&
mode
);
*
p
=
SysAllocString
(
mode
);
nsAString_Finish
(
&
mode_str
);
...
...
dlls/mshtml/htmlelem.c
View file @
559649c4
...
...
@@ -191,7 +191,7 @@ static HRESULT WINAPI HTMLElement_getAttribute(IHTMLElement *iface, BSTR strAttr
if
(
NS_SUCCEEDED
(
nsres
))
{
static
const
WCHAR
wszSRC
[]
=
{
's'
,
'r'
,
'c'
,
0
};
nsAString_GetData
(
&
value_str
,
&
value
,
NULL
);
nsAString_GetData
(
&
value_str
,
&
value
);
if
(
!
strcmpiW
(
strAttributeName
,
wszSRC
))
{
WCHAR
buffer
[
256
];
...
...
@@ -253,7 +253,7 @@ static HRESULT WINAPI HTMLElement_get_className(IHTMLElement *iface, BSTR *p)
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
class
;
nsAString_GetData
(
&
class_str
,
&
class
,
NULL
);
nsAString_GetData
(
&
class_str
,
&
class
);
*
p
=
SysAllocString
(
class
);
}
else
{
ERR
(
"GetClassName failed: %08x
\n
"
,
nsres
);
...
...
@@ -292,7 +292,7 @@ static HRESULT WINAPI HTMLElement_get_tagName(IHTMLElement *iface, BSTR *p)
nsAString_Init
(
&
tag_str
,
NULL
);
nsres
=
nsIDOMHTMLElement_GetTagName
(
This
->
nselem
,
&
tag_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
tag_str
,
&
tag
,
NULL
);
nsAString_GetData
(
&
tag_str
,
&
tag
);
*
p
=
SysAllocString
(
tag
);
}
else
{
ERR
(
"GetTagName failed: %08x
\n
"
,
nsres
);
...
...
@@ -1318,7 +1318,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
nsAString_Init
(
&
class_name_str
,
NULL
);
nsIDOMHTMLElement_GetTagName
(
nselem
,
&
class_name_str
);
nsAString_GetData
(
&
class_name_str
,
&
class_name
,
NULL
);
nsAString_GetData
(
&
class_name_str
,
&
class_name
);
if
(
!
strcmpW
(
class_name
,
wszA
))
ret
=
HTMLAnchorElement_Create
(
nselem
);
...
...
@@ -1495,7 +1495,7 @@ static BOOL is_elem_name(HTMLElement *elem, LPCWSTR name)
nsAString_Init
(
&
nsstr
,
NULL
);
nsIDOMHTMLElement_GetId
(
elem
->
nselem
,
&
nsstr
);
nsAString_GetData
(
&
nsstr
,
&
str
,
NULL
);
nsAString_GetData
(
&
nsstr
,
&
str
);
if
(
!
strcmpiW
(
str
,
name
))
{
nsAString_Finish
(
&
nsstr
);
return
TRUE
;
...
...
@@ -1505,7 +1505,7 @@ static BOOL is_elem_name(HTMLElement *elem, LPCWSTR name)
nsres
=
nsIDOMHTMLElement_GetAttribute
(
elem
->
nselem
,
&
nsname
,
&
nsstr
);
nsAString_Finish
(
&
nsname
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
nsstr
,
&
str
,
NULL
);
nsAString_GetData
(
&
nsstr
,
&
str
);
ret
=
!
strcmpiW
(
str
,
name
);
}
...
...
@@ -1615,7 +1615,7 @@ static HRESULT WINAPI HTMLElementCollection_tags(IHTMLElementCollection *iface,
continue
;
nsIDOMElement_GetTagName
(
This
->
elems
[
i
]
->
nselem
,
&
tag_str
);
nsAString_GetData
(
&
tag_str
,
&
tag
,
NULL
);
nsAString_GetData
(
&
tag_str
,
&
tag
);
if
(
CompareStringW
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
tag
,
-
1
,
V_BSTR
(
&
tagName
),
-
1
)
==
CSTR_EQUAL
)
...
...
dlls/mshtml/htmlelem2.c
View file @
559649c4
...
...
@@ -612,7 +612,7 @@ static HRESULT WINAPI HTMLElement2_get_dir(IHTMLElement2 *iface, BSTR *p)
nsres
=
nsIDOMHTMLElement_GetDir
(
This
->
nselem
,
&
dir_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
dir
;
nsAString_GetData
(
&
dir_str
,
&
dir
,
NULL
);
nsAString_GetData
(
&
dir_str
,
&
dir
);
if
(
*
dir
)
*
p
=
SysAllocString
(
dir
);
}
else
{
...
...
dlls/mshtml/htmlinput.c
View file @
559649c4
...
...
@@ -126,7 +126,7 @@ static HRESULT WINAPI HTMLInputElement_get_type(IHTMLInputElement *iface, BSTR *
nsres
=
nsIDOMHTMLInputElement_GetType
(
This
->
nsinput
,
&
type_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
type_str
,
&
type
,
NULL
);
nsAString_GetData
(
&
type_str
,
&
type
);
*
p
=
SysAllocString
(
type
);
}
else
{
ERR
(
"GetType failed: %08x
\n
"
,
nsres
);
...
...
@@ -158,7 +158,7 @@ static HRESULT WINAPI HTMLInputElement_get_value(IHTMLInputElement *iface, BSTR
nsres
=
nsIDOMHTMLInputElement_GetValue
(
This
->
nsinput
,
&
value_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
value_str
,
&
value
,
NULL
);
nsAString_GetData
(
&
value_str
,
&
value
);
*
p
=
SysAllocString
(
value
);
}
else
{
ERR
(
"GetValue failed: %08x
\n
"
,
nsres
);
...
...
@@ -190,7 +190,7 @@ static HRESULT WINAPI HTMLInputElement_get_name(IHTMLInputElement *iface, BSTR *
nsres
=
nsIDOMHTMLInputElement_GetName
(
This
->
nsinput
,
&
name_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
name_str
,
&
name
,
NULL
);
nsAString_GetData
(
&
name_str
,
&
name
);
*
p
=
SysAllocString
(
name
);
}
else
{
ERR
(
"GetName failed: %08x
\n
"
,
nsres
);
...
...
dlls/mshtml/htmlnode.c
View file @
559649c4
...
...
@@ -223,7 +223,7 @@ static HRESULT WINAPI HTMLDOMNode_get_nodeName(IHTMLDOMNode *iface, BSTR *p)
nsres
=
nsIDOMNode_GetNodeName
(
This
->
nsnode
,
&
name_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
name_str
,
&
name
,
NULL
);
nsAString_GetData
(
&
name_str
,
&
name
);
*
p
=
SysAllocString
(
name
);
}
else
{
ERR
(
"GetNodeName failed: %08x
\n
"
,
nsres
);
...
...
dlls/mshtml/htmloption.c
View file @
559649c4
...
...
@@ -147,7 +147,7 @@ static HRESULT WINAPI HTMLOptionElement_get_value(IHTMLOptionElement *iface, BST
nsAString_Init
(
&
value_str
,
NULL
);
nsres
=
nsIDOMHTMLOptionElement_GetValue
(
This
->
nsoption
,
&
value_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
value_str
,
&
value
,
NULL
);
nsAString_GetData
(
&
value_str
,
&
value
);
*
p
=
SysAllocString
(
value
);
}
else
{
ERR
(
"GetValue failed: %08x
\n
"
,
nsres
);
...
...
@@ -250,7 +250,7 @@ static HRESULT WINAPI HTMLOptionElement_get_text(IHTMLOptionElement *iface, BSTR
nsAString_Init
(
&
text_str
,
NULL
);
nsres
=
nsIDOMHTMLOptionElement_GetText
(
This
->
nsoption
,
&
text_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
text_str
,
&
text
,
NULL
);
nsAString_GetData
(
&
text_str
,
&
text
);
*
p
=
SysAllocString
(
text
);
}
else
{
ERR
(
"GetText failed: %08x
\n
"
,
nsres
);
...
...
dlls/mshtml/htmlselect.c
View file @
559649c4
...
...
@@ -154,7 +154,7 @@ static HRESULT WINAPI HTMLSelectElement_get_name(IHTMLSelectElement *iface, BSTR
if
(
NS_SUCCEEDED
(
nsres
))
{
static
const
WCHAR
wszGarbage
[]
=
{
'g'
,
'a'
,
'r'
,
'b'
,
'a'
,
'g'
,
'e'
,
0
};
nsAString_GetData
(
&
name_str
,
&
name
,
NULL
);
nsAString_GetData
(
&
name_str
,
&
name
);
/*
* Native never returns empty string here. If an element has no name,
...
...
@@ -249,7 +249,7 @@ static HRESULT WINAPI HTMLSelectElement_get_value(IHTMLSelectElement *iface, BST
nsres
=
nsIDOMHTMLSelectElement_GetValue
(
This
->
nsselect
,
&
value_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
value_str
,
&
value
,
NULL
);
nsAString_GetData
(
&
value_str
,
&
value
);
*
p
=
SysAllocString
(
value
);
}
else
{
ERR
(
"GetValue failed: %08x
\n
"
,
nsres
);
...
...
dlls/mshtml/htmlstyle.c
View file @
559649c4
...
...
@@ -175,7 +175,7 @@ static HRESULT get_style_attr(HTMLStyle *This, LPCWSTR name, BSTR *p)
get_style_attr_nsval
(
This
,
name
,
&
str_value
);
nsAString_GetData
(
&
str_value
,
&
value
,
NULL
);
nsAString_GetData
(
&
str_value
,
&
value
);
*
p
=
*
value
?
SysAllocString
(
value
)
:
NULL
;
nsAString_Finish
(
&
str_value
);
...
...
@@ -193,7 +193,7 @@ static HRESULT check_style_attr_value(HTMLStyle *This, LPCWSTR name, LPCWSTR exv
get_style_attr_nsval
(
This
,
name
,
&
str_value
);
nsAString_GetData
(
&
str_value
,
&
value
,
NULL
);
nsAString_GetData
(
&
str_value
,
&
value
);
*
p
=
strcmpW
(
value
,
exval
)
?
VARIANT_FALSE
:
VARIANT_TRUE
;
nsAString_Finish
(
&
str_value
);
...
...
dlls/mshtml/htmltextarea.c
View file @
559649c4
...
...
@@ -131,7 +131,7 @@ static HRESULT WINAPI HTMLTextAreaElement_get_value(IHTMLTextAreaElement *iface,
nsres
=
nsIDOMHTMLTextAreaElement_GetValue
(
This
->
nstextarea
,
&
value_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
value_str
,
&
value
,
NULL
);
nsAString_GetData
(
&
value_str
,
&
value
);
*
p
=
SysAllocString
(
value
);
}
else
{
ERR
(
"GetValue failed: %08x
\n
"
,
nsres
);
...
...
@@ -163,7 +163,7 @@ static HRESULT WINAPI HTMLTextAreaElement_get_name(IHTMLTextAreaElement *iface,
nsres
=
nsIDOMHTMLTextAreaElement_GetName
(
This
->
nstextarea
,
&
name_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
name_str
,
&
name
,
NULL
);
nsAString_GetData
(
&
name_str
,
&
name
);
*
p
=
SysAllocString
(
name
);
}
else
{
ERR
(
"GetName failed: %08x
\n
"
,
nsres
);
...
...
dlls/mshtml/mshtml_private.h
View file @
559649c4
...
...
@@ -412,7 +412,7 @@ PRUint32 nsACString_GetData(const nsACString*,const char**);
void
nsACString_Finish
(
nsACString
*
);
void
nsAString_Init
(
nsAString
*
,
const
PRUnichar
*
);
PRUint32
nsAString_GetData
(
const
nsAString
*
,
const
PRUnichar
**
,
PRBool
*
);
PRUint32
nsAString_GetData
(
const
nsAString
*
,
const
PRUnichar
**
);
void
nsAString_Finish
(
nsAString
*
);
nsIInputStream
*
create_nsstream
(
const
char
*
,
PRInt32
);
...
...
dlls/mshtml/nsembed.c
View file @
559649c4
...
...
@@ -489,9 +489,9 @@ void nsAString_Init(nsAString *str, const PRUnichar *data)
NS_StringSetData
(
str
,
data
,
PR_UINT32_MAX
);
}
PRUint32
nsAString_GetData
(
const
nsAString
*
str
,
const
PRUnichar
**
data
,
PRBool
*
termited
)
PRUint32
nsAString_GetData
(
const
nsAString
*
str
,
const
PRUnichar
**
data
)
{
return
NS_StringGetData
(
str
,
data
,
termited
);
return
NS_StringGetData
(
str
,
data
,
NULL
);
}
void
nsAString_Finish
(
nsAString
*
str
)
...
...
dlls/mshtml/nsservice.c
View file @
559649c4
...
...
@@ -334,7 +334,7 @@ static nsresult NSAPI nsTooltipTextProvider_GetNodeText(nsITooltipTextProvider *
nsIDOMHTMLElement_GetTitle
(
nselem
,
&
title_str
);
nsIDOMHTMLElement_Release
(
nselem
);
nsAString_GetData
(
&
title_str
,
&
title
,
NULL
);
nsAString_GetData
(
&
title_str
,
&
title
);
if
(
title
&&
*
title
)
{
if
(
node
!=
aNode
)
nsIDOMNode_Release
(
node
);
...
...
dlls/mshtml/persist.c
View file @
559649c4
...
...
@@ -362,7 +362,7 @@ static HRESULT get_doc_string(HTMLDocument *This, char **str, DWORD *len)
nsnode_to_nsstring
(
nsnode
,
&
nsstr
);
nsIDOMNode_Release
(
nsnode
);
nsAString_GetData
(
&
nsstr
,
&
strw
,
NULL
);
nsAString_GetData
(
&
nsstr
,
&
strw
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
strw
));
*
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
strw
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
...
...
dlls/mshtml/txtrange.c
View file @
559649c4
...
...
@@ -147,7 +147,7 @@ static BOOL is_br_node(nsIDOMNode *node)
nsAString_Init
(
&
tag_str
,
NULL
);
nsIDOMElement_GetTagName
(
elem
,
&
tag_str
);
nsIDOMElement_Release
(
elem
);
nsAString_GetData
(
&
tag_str
,
&
tag
,
0
);
nsAString_GetData
(
&
tag_str
,
&
tag
);
if
(
!
strcmpiW
(
tag
,
brW
))
ret
=
TRUE
;
...
...
@@ -233,7 +233,7 @@ static void wstrbuf_append_node(wstrbuf_t *buf, nsIDOMNode *node)
nsAString_Init
(
&
data_str
,
NULL
);
nsIDOMText_GetData
(
nstext
,
&
data_str
);
nsAString_GetData
(
&
data_str
,
&
data
,
NULL
);
nsAString_GetData
(
&
data_str
,
&
data
);
wstrbuf_append_nodetxt
(
buf
,
data
,
strlenW
(
data
));
nsAString_Finish
(
&
data_str
);
...
...
@@ -264,7 +264,7 @@ static BOOL fill_nodestr(dompos_t *pos)
nsAString_Init
(
&
pos
->
str
,
NULL
);
nsIDOMText_GetData
(
text
,
&
pos
->
str
);
nsIDOMText_Release
(
text
);
nsAString_GetData
(
&
pos
->
str
,
&
pos
->
p
,
NULL
);
nsAString_GetData
(
&
pos
->
str
,
&
pos
->
p
);
if
(
pos
->
off
==
-
1
)
pos
->
off
=
*
pos
->
p
?
strlenW
(
pos
->
p
)
-
1
:
0
;
...
...
@@ -1042,7 +1042,7 @@ static HRESULT WINAPI HTMLTxtRange_get_htmlText(IHTMLTxtRange *iface, BSTR *p)
nsnode_to_nsstring
((
nsIDOMNode
*
)
fragment
,
&
nsstr
);
nsIDOMDocumentFragment_Release
(
fragment
);
nsAString_GetData
(
&
nsstr
,
&
nstext
,
NULL
);
nsAString_GetData
(
&
nsstr
,
&
nstext
);
*
p
=
SysAllocString
(
nstext
);
nsAString_Finish
(
&
nsstr
);
...
...
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