ETHER: Support building with MinGW environment
This commit is contained in:
parent
5fba6e7607
commit
7ab9b6abec
1 changed files with 3 additions and 0 deletions
|
@ -1628,6 +1628,9 @@ static int _eth_get_system_id (char *buf, size_t buf_size)
|
|||
HKEY reghnd;
|
||||
|
||||
memset (buf, 0, buf_size);
|
||||
#ifndef KEY_WOW64_64KEY
|
||||
#define KEY_WOW64_64KEY (0x0100)
|
||||
#endif
|
||||
if ((status = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Cryptography", 0, KEY_QUERY_VALUE|KEY_WOW64_64KEY, ®hnd)) != ERROR_SUCCESS)
|
||||
return -1;
|
||||
reglen = buf_size;
|
||||
|
|
Loading…
Add table
Reference in a new issue