mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Remove the (R) character from the Windows version string.
This commit is contained in:
parent
524c5b1cd6
commit
3e88f3de4c
@ -372,8 +372,16 @@ Pandora_Wmi::getOSName () {
|
|||||||
dhGetValue (L"%s", &name, quickfix,
|
dhGetValue (L"%s", &name, quickfix,
|
||||||
L".Caption");
|
L".Caption");
|
||||||
|
|
||||||
|
if (name != NULL) {
|
||||||
|
// Remove the (R) character.
|
||||||
|
for (int i = 0; i < strlen(name); i++) {
|
||||||
|
if ((unsigned char)name[i] == 0xAE) {
|
||||||
|
name[i] = ' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
ret = name;
|
ret = name;
|
||||||
dhFreeString (name);
|
dhFreeString (name);
|
||||||
|
}
|
||||||
|
|
||||||
} NEXT_THROW (quickfix);
|
} NEXT_THROW (quickfix);
|
||||||
} catch (string errstr) {
|
} catch (string errstr) {
|
||||||
@ -406,6 +414,12 @@ Pandora_Wmi::getOSVersion () {
|
|||||||
L".CSDVersion");
|
L".CSDVersion");
|
||||||
|
|
||||||
if (version != NULL) {
|
if (version != NULL) {
|
||||||
|
// Remove the (R) character.
|
||||||
|
for (int i = 0; i < strlen(version); i++) {
|
||||||
|
if ((unsigned char)version[i] == 0xAE) {
|
||||||
|
version[i] = ' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
ret = version;
|
ret = version;
|
||||||
dhFreeString (version);
|
dhFreeString (version);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user