ETHER: Clean compile warning on Windows compiled as C++
This commit is contained in:
parent
2e9fd354a4
commit
30c182a10c
1 changed files with 1 additions and 1 deletions
|
@ -1654,7 +1654,7 @@ static int _eth_get_system_id (char *buf, size_t buf_size)
|
||||||
if ((status = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Cryptography", 0, KEY_QUERY_VALUE|KEY_WOW64_64KEY, ®hnd)) != ERROR_SUCCESS)
|
if ((status = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Cryptography", 0, KEY_QUERY_VALUE|KEY_WOW64_64KEY, ®hnd)) != ERROR_SUCCESS)
|
||||||
return -1;
|
return -1;
|
||||||
reglen = buf_size;
|
reglen = buf_size;
|
||||||
if ((status = RegQueryValueExA (reghnd, "MachineGuid", NULL, ®type, buf, ®len)) != ERROR_SUCCESS) {
|
if ((status = RegQueryValueExA (reghnd, "MachineGuid", NULL, ®type, (LPBYTE)buf, ®len)) != ERROR_SUCCESS) {
|
||||||
RegCloseKey (reghnd);
|
RegCloseKey (reghnd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue