mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
- Fix a NULL termination.
svn path=/trunk/; revision=8012
This commit is contained in:
parent
cd98a247e4
commit
ef6d18b7ad
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue