I am calling StarBurn_ISO9660JolietFileTree_Add and it is causing the program to hang.
Below is the function I am using to make the call
Code:
BOOL CStarBurnGrabber::AddISO9660JolietFile(LPCTSTR szFile)
{
int nError;
CHAR szJolietFile[MAX_PATH];
CHAR szNewRootName[MAX_PATH];
void* pNewChild = NULL;
if (!m_pISO9660JolietFileTree)
return FALSE;
StringCchCopy(szJolietFile, MAX_PATH, szFile);
StringCchCopy(szNewRootName, MAX_PATH, PathFindFileName(szFile));
nError = StarBurn_ISO9660JolietFileTree_Add(m_pISO9660JolietFileTree,
(PCHAR)m_szExceptionText,
sizeof(m_szExceptionText),
&m_ulSystemError,
(PCHAR)szJolietFile,
szNewRootName,
FILE_TIME_LAST_WRITE,
NULL,
&pNewChild);
return nError == EN_SUCCESS;
}
m_pISO9660JolietFileTree is a valid file tree created with StarBurn_ISO9660JolietFileTree_Create
m_szExceptionText is declared: PCHAR m_szExceptionText[1024];
m_ulSystemError is declared: ULONG m_ulSystemError;
Any idea what I am doing wrong?