- Fix a NULL termination.

svn path=/trunk/; revision=8012
This commit is contained in:
Filip Navara 2004-02-03 14:25:38 +00:00
parent cd98a247e4
commit ef6d18b7ad

View file

@ -197,7 +197,7 @@ INT LoadProvider(
* UNICODE_STRING objects are not null-terminated, but LoadLibraryW
* expects a null-terminated string
*/
Provider->LibraryName.Buffer[Provider->LibraryName.Length] = L'\0';
Provider->LibraryName.Buffer[Provider->LibraryName.Length / sizeof(WCHAR)] = L'\0';
Provider->hModule = LoadLibraryW(Provider->LibraryName.Buffer);
if (NULL != Provider->hModule) {
Provider->WSPStartup = (LPWSPSTARTUP)GetProcAddress(