fixing bug 125106 - general nsIFile converter change hosed XPInstall intl filenames. r=dveditz, sr=alecf, a=sspitzer

git-svn-id: svn://10.0.0.236/trunk@141964 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ssu%netscape.com
2003-04-30 06:49:04 +00:00
parent efc9fe3b50
commit f666231373
38 changed files with 937 additions and 1067 deletions

View File

@@ -93,7 +93,7 @@ WinProfileGetString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
if(argc >= 2)
{
// public int getString ( String section,
// public string getString ( String section,
// String key);
ConvertJSValToStr(b0, cx, argv[0]);
@@ -105,8 +105,7 @@ WinProfileGetString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
}
else
{
JS_ReportError(cx, "WinProfile.getString() parameters error");
return JS_FALSE;
JS_ReportWarning(cx, "WinProfile.getString() parameters error");
}
return JS_TRUE;
@@ -124,7 +123,7 @@ WinProfileWriteString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv
nsAutoString b1;
nsAutoString b2;
*rval = JSVAL_NULL;
*rval = JSVAL_ZERO;
// If there's no private data, this must be the prototype, so ignore
if(nsnull == nativeThis)
@@ -142,17 +141,14 @@ WinProfileWriteString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsv
ConvertJSValToStr(b1, cx, argv[1]);
ConvertJSValToStr(b2, cx, argv[2]);
if(NS_OK != nativeThis->WriteString(b0, b1, b2, &nativeRet))
if(NS_OK == nativeThis->WriteString(b0, b1, b2, &nativeRet))
{
return JS_FALSE;
*rval = INT_TO_JSVAL(nativeRet);
}
*rval = INT_TO_JSVAL(nativeRet);
}
else
{
JS_ReportError(cx, "WinProfile.writeString() parameters error");
return JS_FALSE;
JS_ReportWarning(cx, "WinProfile.writeString() parameters error");
}
return JS_TRUE;