mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Fix warnings
This commit is contained in:
parent
9eb661c768
commit
4cda023c22
2 changed files with 6 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
class HIDService {
|
||||
Handle handle = KernelHandles::HID;
|
||||
Memory& mem;
|
||||
u8* sharedMem; // Pointer to HID shared memory
|
||||
u8* sharedMem = nullptr; // Pointer to HID shared memory
|
||||
|
||||
MAKE_LOG_FUNCTION(log, hidLogger)
|
||||
|
||||
|
@ -22,7 +22,7 @@ public:
|
|||
void setSharedMem(u8* ptr) {
|
||||
sharedMem = ptr;
|
||||
if (ptr != nullptr) { // Zero-fill shared memory in case the process tries to read stale service data or vice versa
|
||||
std::memset(ptr, 0xff, 0x2b0);
|
||||
std::memset(ptr, 0, 0x2b0);
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue