mirror of
https://github.com/reactos/reactos.git
synced 2024-07-16 17:36:12 +00:00
- fix bug in GetCPFileNameFromRegistry spotted by Daniel Zimmermann ;)
svn path=/trunk/; revision=28908
This commit is contained in:
parent
80e9bef2b0
commit
1c3f08d9ab
|
@ -854,6 +854,7 @@ GetCPFileNameFromRegistry(UINT CodePage, LPWSTR FileName, ULONG FileNameSize)
|
|||
if (NT_SUCCESS(Status) && Kvpi->Type == REG_SZ &&
|
||||
Kvpi->DataLength > sizeof(WCHAR))
|
||||
{
|
||||
bRetValue = TRUE;
|
||||
if (FileName != NULL)
|
||||
{
|
||||
lstrcpynW(FileName, (WCHAR*)Kvpi->Data,
|
||||
|
|
Loading…
Reference in a new issue