mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Win32 build fixes
This commit is contained in:
1 parent
9270fc0b15
commit
b3fcd9c420
2 files changed
+12
-20
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user