mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug #63346 --> implment reveal and launch methods for OS/2.
code contributed by mkaply r=mkaply sr=mscott
This commit is contained in:
parent
7d3acb0d42
commit
a43826465f
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,6 +48,8 @@
|
||||
#define INCL_DOSMODULEMGR
|
||||
#define INCL_DOSNLS
|
||||
#define INCL_WINCOUNTRY
|
||||
#define INCL_WINWORKPLACE
|
||||
|
||||
#include <os2.h>
|
||||
|
||||
#if 0 // OLDWAY
|
||||
|
Loading…
Reference in New Issue
Block a user