mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Fix bug in smGetService
This commit is contained in:
parent
10b41de71e
commit
4c3a4ba271
@ -47,7 +47,7 @@ Result smGetService(Handle* handle_out, const char* name) {
|
||||
|
||||
size_t i;
|
||||
for (i=0; i<8; i++) {
|
||||
name_encoded = (name_encoded << 8) | name[i];
|
||||
name_encoded = (name_encoded >> 8) | (((u64) name[i]) << 56);
|
||||
|
||||
if (name[i] == '\0')
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user