Fix launch GUI error for IsSecretPersistent

This commit is contained in:
Jim Norman 2005-11-07 18:48:48 +00:00
parent 4dae137bc4
commit 878c526930

View File

@ -1244,13 +1244,15 @@ namespace Novell.CASA
public static bool IsSecretPersistent(uint ssFlags, string id)
{
int rcode = 0;
if (null != id && "" !=id)
{
SSCS_SECRET_ID_T secretID = new SSCS_SECRET_ID_T();
try
{
if(ssFlags == 0)
{
if ((null == id) || ("" == id))
return false;
secretID.len = id.Length;
secretID.id = id;
rcode = miCASAIsSecretPersistent(ssFlags,
@ -1268,7 +1270,7 @@ namespace Novell.CASA
{
Console.WriteLine(e.ToString());
}
}
if(rcode == 1)
return true;