mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
Make corrections
This commit is contained in:
parent
27009fcf19
commit
af85ea80ed
@ -69,6 +69,6 @@ Result setsysGetColorSetId(ColorSetId* out);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the system's serial number.
|
* @brief Gets the system's serial number.
|
||||||
* @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x18 bytes)
|
* @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x19 bytes)
|
||||||
*/
|
*/
|
||||||
Result setsysGetSerialNumber(char *serial);
|
Result setsysGetSerialNumber(char *serial);
|
||||||
|
@ -351,6 +351,8 @@ Result setsysGetSerialNumber(char *serial) {
|
|||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
|
if (serial) memset(serial, 0, 0x19);
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 cmd_id;
|
u64 cmd_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user