mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Set serial on Rust binding
This commit is contained in:
parent
2dd23b2518
commit
1057cb3e3c
@ -138,9 +138,10 @@ struct prop_to_string : prop_cb {
|
||||
uint32_t serial;
|
||||
};
|
||||
|
||||
template<> void prop_to_string<rust::String>::exec(const char *, const char *value, uint32_t) {
|
||||
template<> void prop_to_string<rust::String>::exec(const char *, const char *value, uint32_t s) {
|
||||
// We do not want to crash when values are not UTF-8
|
||||
val = rust::String::lossy(value);
|
||||
serial = s;
|
||||
}
|
||||
|
||||
static int set_prop(const char *name, const char *value, PropFlags flags) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user