{
HAB hab;
HINI hIni;
- static const wxChar zDefunkt[] = _T("$$default");
+ wxChar zDefunkt[] = _T("$$default");
+ char zBuf[1000];
if (rFile != "")
{
,(PSZ)WXSTRINGCAST rSection
,(PSZ)WXSTRINGCAST rEntry
,(PSZ)zDefunkt
- ,(void*)*ppValue
+ ,(PVOID)zBuf
,1000
);
- if (n != 0L || wxStrcmp(*ppValue, zDefunkt) == 0)
+ if (zBuf == NULL)
return FALSE;
+ if (n == 0L || wxStrcmp(zBuf, zDefunkt) == 0)
+ return FALSE;
+ zBuf[n-1] = '\0';
}
else
return FALSE;
,(PSZ)WXSTRINGCAST rSection
,(PSZ)WXSTRINGCAST rEntry
,(PSZ)zDefunkt
- ,(void*)*ppValue
+ ,(PVOID)zBuf
,1000
);
- if (n != 0L || wxStrcmp(*ppValue, zDefunkt) == 0)
+ if (zBuf == NULL)
+ return FALSE;
+ if (n == 0L || wxStrcmp(zBuf, zDefunkt) == 0)
return FALSE;
+ zBuf[n-1] = '\0';
}
+ strcpy((char*)*ppValue, zBuf);
return TRUE;
}