/* Load research message viewdata */ static bool dataResearchMsgLoad(const char* fileName, void** ppData) { VIEWDATA* pViewData = loadResearchViewData(fileName); if (!pViewData) { return false; } // set the pointer so the release function gets called with it *ppData = pViewData; return true; }
/* Load research message viewdata */ static bool dataResearchMsgLoad(const char *fileName, void **ppData) { WzString *ptr = loadResearchViewData(fileName); if (!ptr) { return false; } // set the pointer so the release function gets called with it *ppData = (void *)ptr; return true; }