Commit f32e415
libgamestream: fix uniqueid.dat read check
fread(unique_id, UNIQUEID_CHARS, 1, fd) returns the number of items
read (1 on success), not bytes, so the != UNIQUEID_CHARS comparison is
always true. Any existing uniqueid.dat is silently ignored and
rewritten with the default 0123456789ABCDEF on every run, making a
custom per-device uniqueid impossible.1 parent f7dc33c commit f32e415
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments