Skip to content

Commit 30c182a

Browse files
committed
ETHER: Clean compile warning on Windows compiled as C++
1 parent 2e9fd35 commit 30c182a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sim_ether.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ static int _eth_get_system_id (char *buf, size_t buf_size)
16541654
if ((status = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Cryptography", 0, KEY_QUERY_VALUE|KEY_WOW64_64KEY, &reghnd)) != ERROR_SUCCESS)
16551655
return -1;
16561656
reglen = buf_size;
1657-
if ((status = RegQueryValueExA (reghnd, "MachineGuid", NULL, &regtype, buf, &reglen)) != ERROR_SUCCESS) {
1657+
if ((status = RegQueryValueExA (reghnd, "MachineGuid", NULL, &regtype, (LPBYTE)buf, &reglen)) != ERROR_SUCCESS) {
16581658
RegCloseKey (reghnd);
16591659
return -1;
16601660
}

0 commit comments

Comments
 (0)