we write family and style as an uint32, so we should read it as an uint32 too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14906 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -136,7 +136,7 @@ DrawState::ReadFontFromLink(BPrivate::LinkReceiver& link)
|
|||||||
|
|
||||||
if (mask & B_FONT_FAMILY_AND_STYLE) {
|
if (mask & B_FONT_FAMILY_AND_STYLE) {
|
||||||
uint32 fontID;
|
uint32 fontID;
|
||||||
link.Read<int32>((int32*)&fontID);
|
link.Read<uint32>(&fontID);
|
||||||
fFont.SetFamilyAndStyle(fontID);
|
fFont.SetFamilyAndStyle(fontID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user