Bug #63346 --> implment reveal and launch methods for OS/2.

code contributed by mkaply
r=mkaply
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@85870 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com
2001-01-31 21:04:04 +00:00
parent 9d0b443a39
commit b2d31e135e
2 changed files with 17 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
#include "nsMemory.h"
#include "nsLocalFileOS2.h"
#include "nsXPIDLString.h"
#include "nsISimpleEnumerator.h"
#include "nsIComponentManager.h"
@@ -2178,10 +2179,23 @@ nsLocalFile::SetPersistentDescriptor(const char * aPersistentDescriptor)
return InitWithPath(aPersistentDescriptor);
}
#ifndef OPEN_DEFAULT
#define OPEN_DEFAULT 0
#endif
NS_IMETHODIMP
nsLocalFile::Reveal()
{
return NS_ERROR_FAILURE;
nsXPIDLCString platformPath;
GetPath(getter_Copies(platformPath));
HOBJECT hobject = WinQueryObject(platformPath);
WinOpenObject( hobject, OPEN_DEFAULT, TRUE);
// we don't care if it succeeded or failed.
return NS_OK;
}