parent
3fd2b5bece
commit
e9c71fab30
|
@ -92,7 +92,7 @@ struct name
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
unsigned int length = MIN (buffer_length, (unsigned int) match->length);
|
unsigned int length = MIN (buffer_length, (unsigned int) match->length);
|
||||||
memcmp (buffer, (this + stringOffset) + match->offset, length);
|
memcpy (buffer, (char *) this + stringOffset + match->offset, length);
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,9 +81,11 @@ populate_log_font (LOGFONTW *lf,
|
||||||
DEBUG_MSG (UNISCRIBE, NULL, "Font name too long");
|
DEBUG_MSG (UNISCRIBE, NULL, "Font name too long");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned int i = 0; i < len; i++)
|
for (unsigned int i = 0; i < len; i++)
|
||||||
lf->lfFaceName[i] = hb_be_uint16 (lf->lfFaceName[i]);
|
lf->lfFaceName[i] = hb_be_uint16 (lf->lfFaceName[i]);
|
||||||
lf->lfFaceName[len] = 0;
|
lf->lfFaceName[len] = 0;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue