nsPersistentFileDescriptor doomedDesc; nsInputStringStream tempStream(buf); tempStream >> doomedDesc;  nsFileSpec doomedFile(doomedDesc);
nsFileSpec doomedFile(buf);
void DeleteScheduledFiles(void){    HREG reg;    if (REGERR_OK == NR_RegOpen("", &reg))    {        RKEY    key;	    REGENUM state;        /* perform scheduled file deletions and replacements (PC only) */        if (REGERR_OK ==  NR_RegGetKey(reg, ROOTKEY_PRIVATE, REG_DELETE_LIST_KEY,&key))        {            char buf[MAXREGNAMELEN];  // what about the mac?  FIX            while (REGERR_OK == NR_RegEnumEntries(reg, key, &state, buf, sizeof(buf), NULL ))            {                                nsPersistentFileDescriptor doomedDesc;                nsInputStringStream tempStream(buf);                tempStream >> doomedDesc;                nsFileSpec doomedFile(doomedDesc);                doomedFile.Delete(PR_FALSE);                                if (! doomedFile.Exists())                 {                    NR_RegDeleteEntry( reg, key, buf );                }            }            /* delete list node if empty */			if (REGERR_NOMORE == NR_RegEnumEntries( reg, key, &state, buf, sizeof(buf), NULL ))            {                NR_RegDeleteKey(reg, ROOTKEY_PRIVATE, REG_DELETE_LIST_KEY);            }        }                NR_RegClose(reg);    }}