Return "" and not "Unknown" from wxMSW wxGetCpuArchitectureName()
This is more consistent with the Unix version, and easier to test for in the application code.
This commit is contained in:
@@ -995,6 +995,9 @@ bool wxIsPlatformLittleEndian();
|
|||||||
"arm64", or "i86pc". The name for the same CPU running on the same
|
"arm64", or "i86pc". The name for the same CPU running on the same
|
||||||
hardware can vary across operating systems.
|
hardware can vary across operating systems.
|
||||||
|
|
||||||
|
The returned string may be empty if the CPU architecture couldn't be
|
||||||
|
recognized.
|
||||||
|
|
||||||
@since 3.1.5
|
@since 3.1.5
|
||||||
*/
|
*/
|
||||||
wxString wxGetCpuArchitectureName();
|
wxString wxGetCpuArchitectureName();
|
||||||
|
@@ -1297,7 +1297,7 @@ wxString wxGetCpuArchitectureName()
|
|||||||
|
|
||||||
case PROCESSOR_ARCHITECTURE_UNKNOWN:
|
case PROCESSOR_ARCHITECTURE_UNKNOWN:
|
||||||
default:
|
default:
|
||||||
return "Unknown";
|
return wxString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user