Commit a080af03 authored by Sven Paschukat's avatar Sven Paschukat Committed by Alexandre Julliard

ctapi32: Added null terminator to library name.

parent c735a147
......@@ -66,7 +66,7 @@ static int load_functions(void) {
buffer_w[size / sizeof(WCHAR)] = '\0';
len = WideCharToMultiByte(CP_UNIXCP, 0, buffer_w, -1, buffer, sizeof(buffer), NULL, NULL);
if (len)
memcpy(soname, buffer, len - 1);
memcpy(soname, buffer, len);
}
RegCloseKey(key_handle);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment