if (blob != (char *) NULL)
{
xml=AcquireStringInfo(0);
- xml->length=strlen(blob)+1;
- xml->datum=(unsigned char *) blob;
+ SetStringInfoLength(xml,strlen(blob)+1);
+ SetStringInfoDatum(xml,blob);
SetStringInfoPath(xml,filename);
(void) AppendValueToLinkedList(options,xml);
}
blob=(char *) NTResourceToBlob(filename);
if (blob != (char *) NULL)
{
- xml=StringToStringInfo(blob);
+ xml=AcquireStringInfo(0);
+ SetStringInfoLength(xml,strlen(blob)+1);
+ SetStringInfoDatum(xml,blob);
+ SetStringInfoPath(xml,filename);
(void) AppendValueToLinkedList(messages,xml);
- blob=DestroyString(blob);
}
}
#endif