mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
mshtml: Use NS_StringContainerInit2 instead of NS_StringContainerInit.
This commit is contained in:
parent
4a400e154b
commit
22d493763b
@ -711,7 +711,7 @@ void nsfree(void*);
|
||||
void nsACString_SetData(nsACString*,const char*);
|
||||
PRUint32 nsACString_GetData(const nsACString*,const char**);
|
||||
|
||||
void nsAString_Init(nsAString*,const PRUnichar*);
|
||||
BOOL nsAString_Init(nsAString*,const PRUnichar*);
|
||||
void nsAString_SetData(nsAString*,const PRUnichar*);
|
||||
PRUint32 nsAString_GetData(const nsAString*,const PRUnichar**);
|
||||
void nsAString_Finish(nsAString*);
|
||||
|
@ -52,13 +52,13 @@ struct nsCStringContainer {
|
||||
void *v;
|
||||
void *d1;
|
||||
PRUint32 d2;
|
||||
void *d3;
|
||||
PRUint32 d3;
|
||||
};
|
||||
|
||||
static nsresult (*NS_InitXPCOM2)(nsIServiceManager**,void*,void*);
|
||||
static nsresult (*NS_ShutdownXPCOM)(nsIServiceManager*);
|
||||
static nsresult (*NS_GetComponentRegistrar)(nsIComponentRegistrar**);
|
||||
static nsresult (*NS_StringContainerInit)(nsStringContainer*);
|
||||
static nsresult (*NS_StringContainerInit2)(nsStringContainer*,const PRUnichar*,PRUint32,PRUint32);
|
||||
static nsresult (*NS_CStringContainerInit)(nsCStringContainer*);
|
||||
static nsresult (*NS_StringContainerFinish)(nsStringContainer*);
|
||||
static nsresult (*NS_CStringContainerFinish)(nsCStringContainer*);
|
||||
@ -194,7 +194,7 @@ static BOOL load_xpcom(const PRUnichar *gre_path)
|
||||
NS_DLSYM(NS_InitXPCOM2);
|
||||
NS_DLSYM(NS_ShutdownXPCOM);
|
||||
NS_DLSYM(NS_GetComponentRegistrar);
|
||||
NS_DLSYM(NS_StringContainerInit);
|
||||
NS_DLSYM(NS_StringContainerInit2);
|
||||
NS_DLSYM(NS_CStringContainerInit);
|
||||
NS_DLSYM(NS_StringContainerFinish);
|
||||
NS_DLSYM(NS_CStringContainerFinish);
|
||||
@ -555,11 +555,9 @@ static void nsACString_Finish(nsACString *str)
|
||||
NS_CStringContainerFinish(str);
|
||||
}
|
||||
|
||||
void nsAString_Init(nsAString *str, const PRUnichar *data)
|
||||
BOOL nsAString_Init(nsAString *str, const PRUnichar *data)
|
||||
{
|
||||
NS_StringContainerInit(str);
|
||||
if(data)
|
||||
nsAString_SetData(str, data);
|
||||
return NS_SUCCEEDED(NS_StringContainerInit2(str, data, PR_UINT32_MAX, 0));
|
||||
}
|
||||
|
||||
void nsAString_SetData(nsAString *str, const PRUnichar *data)
|
||||
|
Loading…
Reference in New Issue
Block a user