Commit d57c8041 authored by Michael Meeks's avatar Michael Meeks

Frank's summary bits.

parent 1085aab7
1999-12-16 Frank Chiulli <fc-linux@home.com>
* ms-ole.c (pps_get_text): Remove code that skips the first character if
it is less than 0x30.
* ms-ole-summary.c (ms_ole_summary_open, ms_ole_summary_create): Update
to include '\05'.
1999-12-17 Arturo Tena <arturo@directmail.org>
* ms-ole-summary.c, ms-ole-summary.h (filetime_to_unixtime,
......
......@@ -316,7 +316,7 @@ ms_ole_summary_open (MsOle *f)
g_return_val_if_fail (f != NULL, NULL);
result = ms_ole_stream_open (&s, f, "/",
"SummaryInformation", 'r');
"\05SummaryInformation", 'r');
if (result != MS_OLE_ERR_OK || !s)
return NULL;
......@@ -435,7 +435,7 @@ ms_ole_summary_create (MsOle *f)
g_return_val_if_fail (f != NULL, NULL);
result = ms_ole_stream_open (&s, f, "/",
"\005SummaryInformation", 'w');
"\05SummaryInformation", 'w');
if (result != MS_OLE_ERR_OK || !s) {
printf ("ms_ole_summary_create: Can't open stream for writing\n");
return NULL;
......
......@@ -418,19 +418,17 @@ pps_get_text (guint8 *ptr, int length)
return 0;
}
ans = (char *)g_malloc (sizeof(char) * length + 1);
ans = (char *) g_malloc (sizeof (char) * length + 1);
c = MS_OLE_GET_GUINT16(ptr);
if (c<0x30) /* Magic unicode number I made up */
inb = ptr + 2;
else
inb = ptr;
for (lp=0;lp<length;lp++) {
c = MS_OLE_GET_GUINT16(inb);
ans[lp] = (char)c;
inb+=2;
c = MS_OLE_GET_GUINT16 (ptr);
inb = ptr;
for (lp = 0; lp < length; lp++) {
c = MS_OLE_GET_GUINT16 (inb);
ans [lp] = (char) c;
inb += 2;
}
ans[lp] = 0;
ans [lp] = 0;
return ans;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment