Added a function to return path name in unicode, contributed by m_kato@ga2.so-net.ne.jp, edited by nhotta, bug 22863, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@60365 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -258,10 +258,9 @@ nsFileControlFrame::MouseClick(nsIDOMEvent* aMouseEvent)
|
||||
if (result) {
|
||||
nsFileSpec fileSpec;
|
||||
fileWidget->GetFile(fileSpec);
|
||||
const char * pathName = fileSpec.GetNativePathCString();
|
||||
if (pathName) {
|
||||
mTextFrame->SetProperty(mPresContext, nsHTMLAtoms::value, pathName);
|
||||
}
|
||||
nsAutoString pathName;
|
||||
fileSpec.GetNativePathString(pathName);
|
||||
mTextFrame->SetProperty(mPresContext, nsHTMLAtoms::value, pathName);
|
||||
}
|
||||
NS_RELEASE(fileWidget);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user