diff options
| author | David Skoland <davidskoland@gmail.com> | 2019-07-12 23:00:25 +0000 |
|---|---|---|
| committer | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-07-12 23:00:25 +0000 |
| commit | 5eccabcad15a52691228aded1d9c1fd5074fb70e (patch) | |
| tree | 7eb561cd17039bb29e2f50dd5699c634051d72b2 /src/hardware_functions.cpp | |
| parent | 621aa1adacec2bcc6befb1a4a70eff7c0e46e7b6 (diff) | |
Less insane debugging; minor refactoring (!75)
Diffstat (limited to 'src/hardware_functions.cpp')
| -rw-r--r-- | src/hardware_functions.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/hardware_functions.cpp b/src/hardware_functions.cpp index ebba6ab7..5d6b6ffa 100644 --- a/src/hardware_functions.cpp +++ b/src/hardware_functions.cpp @@ -5,12 +5,12 @@ #if (defined (_WIN32) || defined (_WIN64)) #include <windows.h> -DWORD dwVolSerial; -BOOL bIsRetrieved; +static DWORD dwVolSerial; +static BOOL bIsRetrieved; QString get_hdid() { - bIsRetrieved = GetVolumeInformation(TEXT("C:\\"), NULL, NULL, &dwVolSerial, NULL, NULL, NULL, NULL); + bIsRetrieved = GetVolumeInformation(TEXT("C:\\"), nullptr, 0, &dwVolSerial, nullptr, nullptr, nullptr, 0); if (bIsRetrieved) return QString::number(dwVolSerial, 16); @@ -18,7 +18,6 @@ QString get_hdid() //a totally random string //what could possibly go wrong return "gxsps32sa9fnwic92mfbs0"; - } #elif (defined (LINUX) || defined (__linux__)) |
