Win32 build fixes

This commit is contained in:
Sergey Lyubka committed 2023-12-17 10:14:08 +00:00
1 parent 9270fc0b15
commit b3fcd9c420
2 files changed
+12 -20

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ static void set_device_id(void) {
char buf[15] = "";
#ifdef _WIN32
unsigned serial = 0;
unsigned long serial = 0;
if (GetVolumeInformationA("c:\\", NULL, 0, &serial, NULL, NULL, NULL, 0)) {
mg_snprintf(buf, sizeof(buf), "%lx", serial);
}