Merge pull request #87 from gamemasterplc/main
Fix HuDataSelHeapRead and HuDataSelHeapReadNum
This commit is contained in:
commit
63c96e8905
1 changed files with 2 additions and 4 deletions
|
|
@ -116,8 +116,7 @@ DataReadStat *HuDataDirRead(s32 data_num)
|
||||||
status = HuDataReadChk(data_num);
|
status = HuDataReadChk(data_num);
|
||||||
read_stat = &ReadDataStat[status];
|
read_stat = &ReadDataStat[status];
|
||||||
} else {
|
} else {
|
||||||
status = HuDataReadStatusGet();
|
if((status = HuDataReadStatusGet()) == -1) {
|
||||||
if(status == -1) {
|
|
||||||
OSReport("data.c: Data Work Max Error\n");
|
OSReport("data.c: Data Work Max Error\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -156,8 +155,7 @@ DataReadStat *HuDataDirReadNum(s32 data_num, s32 num)
|
||||||
read_stat->num = num;
|
read_stat->num = num;
|
||||||
} else {
|
} else {
|
||||||
OSReport("data num %x\n", data_num);
|
OSReport("data num %x\n", data_num);
|
||||||
status = HuDataReadStatusGet();
|
if((status = HuDataReadStatusGet()) == -1) {
|
||||||
if(status == -1) {
|
|
||||||
OSReport("data.c: Data Work Max Error\n");
|
OSReport("data.c: Data Work Max Error\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue