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
133af465
Commit
133af465
authored
Dec 02, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi: Turn a constant and several variables into static constants.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4761c367
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
soap.c
dlls/wsdapi/soap.c
+3
-3
xml.c
dlls/wsdapi/xml.c
+1
-1
No files found.
dlls/wsdapi/soap.c
View file @
133af465
...
...
@@ -364,7 +364,7 @@ HRESULT register_namespaces(IWSDXMLContext *xml_context)
static
BOOL
create_guid
(
LPWSTR
buffer
)
{
const
WCHAR
formatString
[]
=
{
'u'
,
'r'
,
'n'
,
':'
,
'u'
,
'u'
,
'i'
,
'd'
,
':'
,
'%'
,
's'
,
0
};
static
const
WCHAR
formatString
[]
=
{
'u'
,
'r'
,
'n'
,
':'
,
'u'
,
'u'
,
'i'
,
'd'
,
':'
,
'%'
,
's'
,
0
};
WCHAR
*
uuidString
=
NULL
;
UUID
uuid
;
...
...
@@ -401,7 +401,7 @@ static void populate_soap_header(WSD_SOAP_HEADER *header, LPCWSTR to, LPCWSTR ac
static
LPWSTR
ulonglong_to_string
(
void
*
parent
,
ULONGLONG
value
)
{
WCHAR
formatString
[]
=
{
'%'
,
'I'
,
'6'
,
'4'
,
'u'
,
0
};
static
const
WCHAR
formatString
[]
=
{
'%'
,
'I'
,
'6'
,
'4'
,
'u'
,
0
};
LPWSTR
ret
;
ret
=
WSDAllocateLinkedMemory
(
parent
,
MAX_ULONGLONG_STRING_SIZE
*
sizeof
(
WCHAR
));
...
...
@@ -560,7 +560,7 @@ static BOOL add_discovered_namespace(struct list *namespaces, WSDXML_NAMESPACE *
static
HRESULT
build_types_list
(
LPWSTR
buffer
,
size_t
buffer_size
,
const
WSD_NAME_LIST
*
list
,
struct
list
*
namespaces
)
{
WCHAR
format_string
[]
=
{
'%'
,
's'
,
':'
,
'%'
,
's'
,
0
};
static
const
WCHAR
format_string
[]
=
{
'%'
,
's'
,
':'
,
'%'
,
's'
,
0
};
LPWSTR
current_buf_pos
=
buffer
;
size_t
memory_needed
=
0
;
const
WSD_NAME_LIST
*
cur
=
list
;
...
...
dlls/wsdapi/xml.c
View file @
133af465
...
...
@@ -380,7 +380,7 @@ static BOOL is_prefix_unique(struct list *namespaces, LPCWSTR prefix)
static
LPWSTR
generate_namespace_prefix
(
IWSDXMLContextImpl
*
impl
,
void
*
parentMemoryBlock
,
LPCWSTR
uri
)
{
WCHAR
formatString
[]
=
{
'u'
,
'n'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
formatString
[]
=
{
'u'
,
'n'
,
'%'
,
'd'
,
0
};
WCHAR
suggestedPrefix
[
7
];
/* Find a unique prefix */
...
...
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