switchbrew / libnx

Library for Switch Homebrew
https://switchbrew.github.io/libnx/
ISC License
1.26k stars 167 forks source link

bool to pointer #612

Closed maddin200 closed 1 year ago

maddin200 commented 1 year ago

/nx/source/applets/swkbd.c line 556 Code: Result swkbdInlineGetImage(SwkbdInline s, void buffer, u64 size, bool *data_available) { Result rc=0; u64 out_size=0, out_alignment=0; s32 width=0, height=0; u64 handle=0;

if (!buffer || !size) return MAKERESULT(Module_Libnx, LibnxError_BadInput);

if (_swkbdInlineHandleFinished(s)) {
    data_available = false; // <- pointer used
    return 0;
}