mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +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
|
* UNICODE_STRING objects are not null-terminated, but LoadLibraryW
|
||||||
* expects a null-terminated string
|
* 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);
|
Provider->hModule = LoadLibraryW(Provider->LibraryName.Buffer);
|
||||||
if (NULL != Provider->hModule) {
|
if (NULL != Provider->hModule) {
|
||||||
Provider->WSPStartup = (LPWSPSTARTUP)GetProcAddress(
|
Provider->WSPStartup = (LPWSPSTARTUP)GetProcAddress(
|
||||||
|
|
Loading…
Reference in a new issue