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
d34bbb2b
Commit
d34bbb2b
authored
Jan 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fixed IUriBuilderFactory declaration.
parent
3a59137b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
uri.c
dlls/urlmon/tests/uri.c
+8
-11
uri.c
dlls/urlmon/uri.c
+10
-10
urlmon.idl
include/urlmon.idl
+3
-3
No files found.
dlls/urlmon/tests/uri.c
View file @
d34bbb2b
...
...
@@ -9090,23 +9090,23 @@ static void test_IUriBuilderFactory(void) {
if
(
SUCCEEDED
(
hr
))
{
builder
=
(
void
*
)
0xdeadbeef
;
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
10
,
0
,
&
builder
);
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
10
,
0
,
&
builder
);
ok
(
hr
==
E_INVALIDARG
,
"Error: CreateInitializedIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_INVALIDARG
);
ok
(
!
builder
,
"Error: Expected 'builder' to be NULL, but was %p.
\n
"
,
builder
);
builder
=
(
void
*
)
0xdeadbeef
;
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
0
,
10
,
&
builder
);
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
0
,
10
,
&
builder
);
ok
(
hr
==
E_INVALIDARG
,
"Error: CreateInitializedIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_INVALIDARG
);
ok
(
!
builder
,
"Error: Expected 'builder' to be NULL, but was %p.
\n
"
,
builder
);
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
0
,
0
,
NULL
);
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
0
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Error: CreateInitializedIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
builder
=
NULL
;
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
0
,
0
,
&
builder
);
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
0
,
0
,
&
builder
);
ok
(
hr
==
S_OK
,
"Error: CreateInitializedIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
if
(
SUCCEEDED
(
hr
))
{
...
...
@@ -9114,9 +9114,6 @@ static void test_IUriBuilderFactory(void) {
LPCWSTR
result
;
DWORD
result_len
;
/* Seems microsoft had a bit of mixup naming this function. It
* returns an uninitialized IUriBuilder.
*/
hr
=
IUriBuilder_GetIUri
(
builder
,
&
tmp
);
ok
(
hr
==
S_OK
,
"Error: GetIUri returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
...
...
@@ -9129,23 +9126,23 @@ static void test_IUriBuilderFactory(void) {
if
(
builder
)
IUriBuilder_Release
(
builder
);
builder
=
(
void
*
)
0xdeadbeef
;
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
10
,
0
,
&
builder
);
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
10
,
0
,
&
builder
);
ok
(
hr
==
E_INVALIDARG
,
"Error: CreateIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_INVALIDARG
);
ok
(
!
builder
,
"Error: Expected 'builder' to be NULL, but was %p.
\n
"
,
builder
);
builder
=
(
void
*
)
0xdeadbeef
;
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
0
,
10
,
&
builder
);
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
0
,
10
,
&
builder
);
ok
(
hr
==
E_INVALIDARG
,
"Error: CreateIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_INVALIDARG
);
ok
(
!
builder
,
"Error: Expected 'builder' to be NULL, but was %p.
\n
"
,
builder
);
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
0
,
0
,
NULL
);
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
0
,
0
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Error: CreateIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
E_POINTER
);
builder
=
NULL
;
hr
=
IUriBuilderFactory_CreateIUriBuilder
(
factory
,
0
,
0
,
&
builder
);
hr
=
IUriBuilderFactory_CreateI
nitializedI
UriBuilder
(
factory
,
0
,
0
,
&
builder
);
ok
(
hr
==
S_OK
,
"Error: CreateIUriBuilder returned 0x%08x, expected 0x%08x.
\n
"
,
hr
,
S_OK
);
if
(
SUCCEEDED
(
hr
))
{
...
...
dlls/urlmon/uri.c
View file @
d34bbb2b
...
...
@@ -5007,10 +5007,10 @@ static ULONG WINAPI UriBuilderFactory_Release(IUriBuilderFactory *iface)
return
ref
;
}
static
HRESULT
WINAPI
UriBuilderFactory_CreateI
nitializedI
UriBuilder
(
IUriBuilderFactory
*
iface
,
DWORD
dwFlags
,
DWORD_PTR
dwReserved
,
IUriBuilder
**
ppIUriBuilder
)
static
HRESULT
WINAPI
UriBuilderFactory_CreateIUriBuilder
(
IUriBuilderFactory
*
iface
,
DWORD
dwFlags
,
DWORD_PTR
dwReserved
,
IUriBuilder
**
ppIUriBuilder
)
{
Uri
*
This
=
impl_from_IUriBuilderFactory
(
iface
);
TRACE
(
"(%p)->(%08x %08x %p)
\n
"
,
This
,
dwFlags
,
(
DWORD
)
dwReserved
,
ppIUriBuilder
);
...
...
@@ -5026,10 +5026,10 @@ static HRESULT WINAPI UriBuilderFactory_CreateInitializedIUriBuilder(IUriBuilder
return
CreateIUriBuilder
(
NULL
,
0
,
0
,
ppIUriBuilder
);
}
static
HRESULT
WINAPI
UriBuilderFactory_CreateIUriBuilder
(
IUriBuilderFactory
*
iface
,
DWORD
dwFlags
,
DWORD_PTR
dwReserved
,
IUriBuilder
**
ppIUriBuilder
)
static
HRESULT
WINAPI
UriBuilderFactory_CreateI
nitializedI
UriBuilder
(
IUriBuilderFactory
*
iface
,
DWORD
dwFlags
,
DWORD_PTR
dwReserved
,
IUriBuilder
**
ppIUriBuilder
)
{
Uri
*
This
=
impl_from_IUriBuilderFactory
(
iface
);
TRACE
(
"(%p)->(%08x %08x %p)
\n
"
,
This
,
dwFlags
,
(
DWORD
)
dwReserved
,
ppIUriBuilder
);
...
...
@@ -5049,8 +5049,8 @@ static const IUriBuilderFactoryVtbl UriBuilderFactoryVtbl = {
UriBuilderFactory_QueryInterface
,
UriBuilderFactory_AddRef
,
UriBuilderFactory_Release
,
UriBuilderFactory_CreateI
nitializedI
UriBuilder
,
UriBuilderFactory_CreateIUriBuilder
UriBuilderFactory_CreateIUriBuilder
,
UriBuilderFactory_CreateI
nitializedI
UriBuilder
};
static
Uri
*
create_uri_obj
(
void
)
{
...
...
include/urlmon.idl
View file @
d34bbb2b
...
...
@@ -1839,16 +1839,16 @@ cpp_quote("HRESULT WINAPI CreateIUriBuilder(IUri*,DWORD,DWORD_PTR,IUriBuilder**)
]
interface
IUriBuilderFactory
:
IUnknown
{
HRESULT
CreateI
nitializedI
UriBuilder
(
HRESULT
CreateIUriBuilder
(
[
in
]
DWORD
dwFlags
,
[
in
]
DWORD_PTR
dwReserved
,
[
out
]
IUriBuilder
**
ppIUriBuilder
)
;
HRESULT
CreateIUriBuilder
(
HRESULT
CreateI
nitializedI
UriBuilder
(
[
in
]
DWORD
dwFlags
,
[
in
]
DWORD_PTR
dwReserved
,
[
out
]
IUriBuilder
**
ppIUriBuilder
)
;
}
;
}
/*****************************************************************************
*
IInternetProtocolEx
interface
...
...
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