We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1e591 commit 01b4543Copy full SHA for 01b4543
source/gameanalytics/Platform/GAWin32.cpp
@@ -233,16 +233,18 @@ std::string GAPlatformWin32::getGpuModel() const
233
DISPLAY_DEVICE device;
234
ZeroMemory(&device, sizeof(DISPLAY_DEVICE));
235
236
- if(EnumDisplayDevices(NULL, 0, &device, 0))
+ device.cb = sizeof(DISPLAY_DEVICE);
237
+
238
+ if(EnumDisplayDevices(NULL, 0, &device, EDD_GET_DEVICE_INTERFACE_NAME))
239
{
240
#ifdef UNICODE
- return utilities::GAUtilities::ws2s(device.DeviceName);
241
+ return utilities::GAUtilities::ws2s(device.DeviceString);
242
#else
- return device.DeviceName;
243
+ return device.DeviceString;
244
#endif
245
}
246
- return UNKNOWN_VALUE;
247
+ return "";
248
249
250
int GAPlatformWin32::getNumCpuCores() const
0 commit comments