File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ s32 cellPadPeriphGetInfo(vm::ptr<CellPadPeriphInfo> info)
287
287
288
288
const PadInfo& rinfo = handler->GetInfo ();
289
289
290
+ std::memset (info.get_ptr (), 0 , sizeof (CellPadPeriphInfo));
291
+
290
292
info->max_connect = rinfo.max_connect ;
291
293
info->now_connect = rinfo.now_connect ;
292
294
info->system_info = rinfo.system_info ;
@@ -394,6 +396,8 @@ s32 cellPadGetInfo(vm::ptr<CellPadInfo> info)
394
396
if (!handler)
395
397
return CELL_PAD_ERROR_UNINITIALIZED;
396
398
399
+ std::memset (info.get_ptr (), 0 , sizeof (CellPadInfo));
400
+
397
401
const PadInfo& rinfo = handler->GetInfo ();
398
402
info->max_connect = rinfo.max_connect ;
399
403
info->now_connect = rinfo.now_connect ;
@@ -424,6 +428,8 @@ s32 cellPadGetInfo2(vm::ptr<CellPadInfo2> info)
424
428
if (!handler)
425
429
return CELL_PAD_ERROR_UNINITIALIZED;
426
430
431
+ std::memset (info.get_ptr (), 0 , sizeof (CellPadInfo2));
432
+
427
433
const PadInfo& rinfo = handler->GetInfo ();
428
434
info->max_connect = rinfo.max_connect ;
429
435
info->now_connect = rinfo.now_connect ;
You can’t perform that action at this time.
0 commit comments