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
64271d52
Commit
64271d52
authored
Apr 22, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use URI with stripped "wine:" part in NewURI call.
parent
699ef11d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
nsembed.c
dlls/mshtml/nsembed.c
+13
-8
nsio.c
dlls/mshtml/nsio.c
+3
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
64271d52
...
...
@@ -727,8 +727,10 @@ HRESULT call_set_active_object(IOleInPlaceUIWindow*,IOleInPlaceActiveObject*);
void
*
nsalloc
(
size_t
)
__WINE_ALLOC_SIZE
(
1
);
void
nsfree
(
void
*
);
void
nsACString_InitDepend
(
nsACString
*
,
const
char
*
);
void
nsACString_SetData
(
nsACString
*
,
const
char
*
);
PRUint32
nsACString_GetData
(
const
nsACString
*
,
const
char
**
);
void
nsACString_Finish
(
nsACString
*
);
BOOL
nsAString_Init
(
nsAString
*
,
const
PRUnichar
*
);
void
nsAString_InitDepend
(
nsAString
*
,
const
PRUnichar
*
);
...
...
dlls/mshtml/nsembed.c
View file @
64271d52
...
...
@@ -48,19 +48,14 @@ WINE_DECLARE_DEBUG_CHANNEL(gecko);
#define PR_UINT32_MAX 0xffffffff
struct
nsCStringContainer
{
void
*
v
;
void
*
d1
;
PRUint32
d2
;
PRUint32
d3
;
};
#define NS_STRING_CONTAINER_INIT_DEPEND 0x0002
#define NS_CSTRING_CONTAINER_INIT_DEPEND 0x0002
static
nsresult
(
*
NS_InitXPCOM2
)(
nsIServiceManager
**
,
void
*
,
void
*
);
static
nsresult
(
*
NS_ShutdownXPCOM
)(
nsIServiceManager
*
);
static
nsresult
(
*
NS_GetComponentRegistrar
)(
nsIComponentRegistrar
**
);
static
nsresult
(
*
NS_StringContainerInit2
)(
nsStringContainer
*
,
const
PRUnichar
*
,
PRUint32
,
PRUint32
);
static
nsresult
(
*
NS_CStringContainerInit2
)(
nsCStringContainer
*
,
const
char
*
,
PRUint32
,
PRUint32
);
static
nsresult
(
*
NS_CStringContainerInit
)(
nsCStringContainer
*
);
static
nsresult
(
*
NS_StringContainerFinish
)(
nsStringContainer
*
);
static
nsresult
(
*
NS_CStringContainerFinish
)(
nsCStringContainer
*
);
...
...
@@ -187,6 +182,7 @@ static BOOL load_xpcom(const PRUnichar *gre_path)
NS_DLSYM
(
NS_InitXPCOM2
);
NS_DLSYM
(
NS_ShutdownXPCOM
);
NS_DLSYM
(
NS_GetComponentRegistrar
);
NS_DLSYM
(
NS_CStringContainerInit2
);
NS_DLSYM
(
NS_StringContainerInit2
);
NS_DLSYM
(
NS_CStringContainerInit
);
NS_DLSYM
(
NS_StringContainerFinish
);
...
...
@@ -533,6 +529,15 @@ static void nsACString_Init(nsACString *str, const char *data)
nsACString_SetData
(
str
,
data
);
}
/*
* Initializes nsACString with data owned by caller.
* Caller must ensure that data is valid during lifetime of string object.
*/
void
nsACString_InitDepend
(
nsACString
*
str
,
const
char
*
data
)
{
NS_CStringContainerInit2
(
str
,
data
,
PR_UINT32_MAX
,
NS_CSTRING_CONTAINER_INIT_DEPEND
);
}
void
nsACString_SetData
(
nsACString
*
str
,
const
char
*
data
)
{
NS_CStringSetData
(
str
,
data
,
PR_UINT32_MAX
);
...
...
@@ -543,7 +548,7 @@ PRUint32 nsACString_GetData(const nsACString *str, const char **data)
return
NS_CStringGetData
(
str
,
data
,
NULL
);
}
static
void
nsACString_Finish
(
nsACString
*
str
)
void
nsACString_Finish
(
nsACString
*
str
)
{
NS_CStringContainerFinish
(
str
);
}
...
...
dlls/mshtml/nsio.c
View file @
64271d52
...
...
@@ -2453,6 +2453,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
HTMLWindow
*
window
=
NULL
;
nsIURI
*
uri
=
NULL
;
LPCWSTR
base_wine_url
=
NULL
;
nsACString
spec_str
;
nsresult
nsres
;
nsACString_GetData
(
aSpec
,
&
spec
);
...
...
@@ -2485,7 +2486,9 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
}
}
nsACString_InitDepend
(
&
spec_str
,
spec
);
nsres
=
nsIIOService_NewURI
(
nsio
,
aSpec
,
aOriginCharset
,
aBaseURI
,
&
uri
);
nsACString_Finish
(
&
spec_str
);
if
(
NS_FAILED
(
nsres
))
TRACE
(
"NewURI failed: %08x
\n
"
,
nsres
);
...
...
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