Author: cwittich Date: Thu Sep 11 04:12:13 2008 New Revision: 36132
URL: http://svn.reactos.org/svn/reactos?rev=36132&view=rev Log: fix incorrect buffersize passed to MultiByteToWideChar
Modified: trunk/reactos/base/system/services/rpcserver.c
Modified: trunk/reactos/base/system/services/rpcserver.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcser... ============================================================================== --- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original) +++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Thu Sep 11 04:12:13 2008 @@ -2927,7 +2927,7 @@ lpDisplayName, -1, lpDisplayNameW, - (wcslen(lpDisplayNameW) + 1) * sizeof(WCHAR)); + wcslen(lpDisplayNameW) + 1);
RegSetValueExW(hServiceKey, L"DisplayName", @@ -2997,7 +2997,7 @@ if (lpBinaryPathName != NULL && *lpBinaryPathName != 0) { lpBinaryPathNameW=HeapAlloc(GetProcessHeap(),0, (strlen(lpBinaryPathName)+1) * sizeof(WCHAR)); - MultiByteToWideChar(CP_ACP, 0, lpBinaryPathName, -1, lpBinaryPathNameW, (wcslen(lpBinaryPathNameW)+1) * sizeof(WCHAR)); + MultiByteToWideChar(CP_ACP, 0, lpBinaryPathName, -1, lpBinaryPathNameW, wcslen(lpBinaryPathNameW)+1); dwError = RegSetValueExW(hServiceKey, L"ImagePath", 0, @@ -3041,7 +3041,7 @@ lpLoadOrderGroup, -1, lpLoadOrderGroupW, - (wcslen(lpLoadOrderGroupW) + 1) * sizeof(WCHAR)); + wcslen(lpLoadOrderGroupW) + 1);
dwError = RegSetValueExW(hServiceKey, L"Group", @@ -3092,7 +3092,7 @@ lpDependencies, dwDependSize, lpDependenciesW, - (wcslen(lpDependenciesW)+1) * sizeof(WCHAR)); + wcslen(lpDependenciesW)+1);
dwError = ScmWriteDependencies(hServiceKey, (LPWSTR)lpDependenciesW,