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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user