mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 19:21:56 +00:00
Strings are always NULL-terminated...
svn path=/trunk/; revision=38896
This commit is contained in:
parent
3268178323
commit
211942ddf7
1 changed files with 2 additions and 2 deletions
|
@ -1616,7 +1616,7 @@ static BOOL TrimGuidString(PCWSTR szString, LPWSTR szNewString)
|
|||
return TRUE;
|
||||
}
|
||||
}
|
||||
wcscpy(szNewString, L"\0");
|
||||
szNewString[0] = L'\0';
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1668,7 +1668,7 @@ pSetupStringFromGuid(LPGUID lpGUID, PWSTR pString, DWORD dwStringLen)
|
|||
|
||||
wcscpy(szBuffer, L"{");
|
||||
wcscat(szBuffer, rpcBuffer);
|
||||
wcscat(szBuffer, L"}\0");
|
||||
wcscat(szBuffer, L"}");
|
||||
|
||||
wcscpy(pString, szBuffer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue