mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
Need to W->A convert the ReactOS version string too
svn path=/trunk/; revision=13670
This commit is contained in:
parent
73da0f2435
commit
4d728cef69
1 changed files with 11 additions and 0 deletions
|
@ -336,12 +336,23 @@ GetVersionExA(
|
|||
lpVersionInformation->dwBuildNumber = viw.dwBuildNumber;
|
||||
lpVersionInformation->dwPlatformId = viw.dwPlatformId;
|
||||
|
||||
/* convert the win version string */
|
||||
RtlInitUnicodeString(&CSDVersionW, viw.szCSDVersion);
|
||||
|
||||
CSDVersionA.Length = 0;
|
||||
CSDVersionA.MaximumLength = sizeof(lpVersionInformation->szCSDVersion);
|
||||
CSDVersionA.Buffer = lpVersionInformation->szCSDVersion;
|
||||
|
||||
RtlUnicodeStringToAnsiString(&CSDVersionA, &CSDVersionW, FALSE);
|
||||
|
||||
/* convert the ReactOS version string */
|
||||
CSDVersionW.Buffer = viw.szCSDVersion + CSDVersionW.Length / sizeof(WCHAR) + 1;
|
||||
CSDVersionW.MaximumLength = sizeof(viw.szCSDVersion) - (CSDVersionW.Length + sizeof(WCHAR));
|
||||
CSDVersionW.Length = wcslen(CSDVersionW.Buffer) * sizeof(WCHAR);
|
||||
CSDVersionA.Buffer = lpVersionInformation->szCSDVersion + CSDVersionA.Length + 1;
|
||||
CSDVersionA.MaximumLength = sizeof(lpVersionInformation->szCSDVersion) - (CSDVersionA.Length + 1);
|
||||
CSDVersionA.Length = 0;
|
||||
|
||||
RtlUnicodeStringToAnsiString(&CSDVersionA, &CSDVersionW, FALSE);
|
||||
|
||||
/* copy back the extended fields */
|
||||
|
|
Loading…
Reference in a new issue