minor fix

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8755 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-08-31 22:28:11 +00:00
parent 1cf63426c6
commit c1706cd270
2 changed files with 48 additions and 10 deletions
+2 -1
View File
@@ -267,7 +267,8 @@ Keymap::Load(entry_ref &ref)
if (!fChars)
delete[] fChars;
fChars = new char[fCharsSize];
err = file.Read(fChars, fCharsSize);
if (file.Read(fChars, fCharsSize) != fCharsSize)
return B_BAD_VALUE;
return B_OK;
}