15 Jul
2025
15 Jul
'25
8:05 a.m.
Let's make it a real function and call it reg_set_str(): ``` LONG reg_set_str( HKEY key, const char *subkey, const char *value ) { return RegSetValueExA( key, subkey, 0, REG_SZ, (const BYTE *)value, strlen(value) + 1 ); } ``` This way we get type checking on the value parameter and allow use with variable strings as well. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8296#note_109899