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
524a8171
Commit
524a8171
authored
Sep 29, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IXMLParser Get/Set Flags.
parent
e65b19ca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
13 deletions
+29
-13
.gitignore
.gitignore
+1
-0
Makefile.in
dlls/msxml3/tests/Makefile.in
+2
-0
xmlparser.c
dlls/msxml3/tests/xmlparser.c
+16
-7
xmlparser.idl
dlls/msxml3/tests/xmlparser.idl
+0
-0
xmlview.c
dlls/msxml3/tests/xmlview.c
+1
-2
xmlparser.c
dlls/msxml3/xmlparser.c
+9
-4
No files found.
.gitignore
View file @
524a8171
...
...
@@ -80,6 +80,7 @@ dlls/msi/sql.tab.c
dlls/msi/sql.tab.h
dlls/mstask/mstask_local.h
dlls/mstask/mstask_local_i.c
dlls/msxml3/tests/xmlparser.h
dlls/msxml3/xmlparser.h
dlls/msxml3/xslpattern.tab.c
dlls/msxml3/xslpattern.tab.h
...
...
dlls/msxml3/tests/Makefile.in
View file @
524a8171
...
...
@@ -9,6 +9,8 @@ C_SRCS = \
xmlparser.c
\
xmlview.c
IDL_H_SRCS
=
xmlparser.idl
RC_SRCS
=
rsrc.rc
@MAKE_TEST_RULES@
dlls/msxml3/tests/xmlparser.c
View file @
524a8171
...
...
@@ -25,17 +25,14 @@
#include "windows.h"
#include "ole2.h"
#include "initguid.h"
#include "xmlparser.h"
#include "wine/test.h"
DEFINE_GUID
(
IID_IXMLParser
,
0xd242361e
,
0x51a0
,
0x11d2
,
0x9c
,
0xaf
,
0x00
,
0x60
,
0xb0
,
0xec
,
0x3d
,
0x39
);
DEFINE_GUID
(
CLSID_XMLParser30
,
0xf5078f31
,
0xc551
,
0x11d3
,
0x89
,
0xb9
,
0x00
,
0x00
,
0xf8
,
0x1f
,
0xe2
,
0x21
);
static
void
create_test
(
void
)
{
HRESULT
hr
;
IUnknown
*
parser
;
IXMLParser
*
parser
;
DWORD
flags
;
hr
=
CoCreateInstance
(
&
CLSID_XMLParser30
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLParser
,
(
void
**
)
&
parser
);
if
(
FAILED
(
hr
))
...
...
@@ -44,7 +41,19 @@ static void create_test(void)
return
;
}
IUnknown_Release
(
parser
);
flags
=
IXMLParser_GetFlags
(
parser
);
ok
(
flags
==
0
,
"Expected 0 got %d
\n
"
,
flags
);
hr
=
IXMLParser_SetFlags
(
parser
,
XMLFLAG_SAX
);
ok
(
hr
==
S_OK
,
"Expected S_OK got 0x%08x
\n
"
,
hr
);
flags
=
IXMLParser_GetFlags
(
parser
);
ok
(
flags
==
XMLFLAG_SAX
,
"Expected 0 got %d
\n
"
,
flags
);
hr
=
IXMLParser_SetFlags
(
parser
,
0
);
ok
(
hr
==
S_OK
,
"Expected S_OK got 0x%08x
\n
"
,
hr
);
IXMLParser_Release
(
parser
);
}
START_TEST
(
xmlparser
)
...
...
dlls/msxml3/tests/xmlparser.idl
0 → 100644
View file @
524a8171
This diff is collapsed.
Click to expand it.
dlls/msxml3/tests/xmlview.c
View file @
524a8171
...
...
@@ -29,11 +29,10 @@
#include "perhist.h"
#include "docobj.h"
#include "urlmon.h"
#include "xmlparser.h"
#include "wine/test.h"
DEFINE_GUID
(
CLSID_XMLView
,
0x48123bc4
,
0x99d9
,
0x11d1
,
0xa6
,
0xb3
,
0x00
,
0xc0
,
0x4f
,
0xd9
,
0x15
,
0x55
);
HRESULT
(
WINAPI
*
pCreateURLMoniker
)(
IMoniker
*
,
LPCWSTR
,
IMoniker
**
);
static
const
char
xmlview_html
[]
=
...
...
dlls/msxml3/xmlparser.c
View file @
524a8171
...
...
@@ -47,6 +47,8 @@ typedef struct _xmlparser
{
IXMLParser
IXMLParser_iface
;
LONG
ref
;
int
flags
;
}
xmlparser
;
static
inline
xmlparser
*
impl_from_IXMLParser
(
IXMLParser
*
iface
)
...
...
@@ -186,9 +188,9 @@ static ULONG WINAPI xmlparser_GetFlags(IXMLParser *iface)
{
xmlparser
*
This
=
impl_from_IXMLParser
(
iface
);
FIXM
E
(
"(%p)
\n
"
,
This
);
TRAC
E
(
"(%p)
\n
"
,
This
);
return
0
;
return
This
->
flags
;
}
static
HRESULT
WINAPI
xmlparser_GetURL
(
IXMLParser
*
iface
,
const
WCHAR
**
ppBuf
)
...
...
@@ -338,9 +340,11 @@ static HRESULT WINAPI xmlparser_SetFlags(IXMLParser *iface, ULONG flags)
{
xmlparser
*
This
=
impl_from_IXMLParser
(
iface
);
FIXM
E
(
"(%p %d)
\n
"
,
This
,
flags
);
TRAC
E
(
"(%p %d)
\n
"
,
This
,
flags
);
return
E_NOTIMPL
;
This
->
flags
=
flags
;
return
S_OK
;
}
static
HRESULT
WINAPI
xmlparser_SetSecureBaseURL
(
IXMLParser
*
iface
,
const
WCHAR
*
baseUrl
)
...
...
@@ -411,6 +415,7 @@ HRESULT XMLParser_create(IUnknown* pUnkOuter, void**ppObj)
return
E_OUTOFMEMORY
;
This
->
IXMLParser_iface
.
lpVtbl
=
&
xmlparser_vtbl
;
This
->
flags
=
0
;
This
->
ref
=
1
;
*
ppObj
=
&
This
->
IXMLParser_iface
;
...
...
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