ctapi32: Added null terminator to library name.

This commit is contained in:
Sven Paschukat 2007-11-29 21:36:09 +01:00 committed by Alexandre Julliard
parent c735a14788
commit a080af035e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ static int load_functions(void) {
buffer_w[size / sizeof(WCHAR)] = '\0'; buffer_w[size / sizeof(WCHAR)] = '\0';
len = WideCharToMultiByte(CP_UNIXCP, 0, buffer_w, -1, buffer, sizeof(buffer), NULL, NULL); len = WideCharToMultiByte(CP_UNIXCP, 0, buffer_w, -1, buffer, sizeof(buffer), NULL, NULL);
if (len) if (len)
memcpy(soname, buffer, len - 1); memcpy(soname, buffer, len);
} }
RegCloseKey(key_handle); RegCloseKey(key_handle);
} }