diff options
Diffstat (limited to 'src/windows/lib/registry.c')
-rw-r--r-- | src/windows/lib/registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/lib/registry.c b/src/windows/lib/registry.c index 5b0e7a1aba..be4ef894d5 100644 --- a/src/windows/lib/registry.c +++ b/src/windows/lib/registry.c @@ -116,7 +116,7 @@ registry_string_set(HKEY hkey, char *sub, char *x) { DWORD err; - err = RegSetValueEx(hkey, sub, 0, REG_SZ, (BYTE *)x, strlen(x) + 1); + err = RegSetValueEx(hkey, sub, 0, REG_SZ, (BYTE *)x, (DWORD)strlen(x) + 1); if (err != ERROR_SUCCESS) return -1; |