Automated leading tab to spaces conversion.
This commit is contained in:
22
uc.c
22
uc.c
@ -268,15 +268,15 @@ uc_err uc_open(uc_arch arch, uc_mode mode, uc_engine **result)
|
||||
if (uc->reg_reset)
|
||||
uc->reg_reset(uc);
|
||||
|
||||
// init winsock sockets so we can use select() for usleep() implementation
|
||||
// init winsock sockets so we can use select() for usleep() implementation
|
||||
#ifdef _MSC_VER
|
||||
{
|
||||
WSADATA wsa_data;
|
||||
WSAStartup(0x202, &wsa_data);
|
||||
}
|
||||
{
|
||||
WSADATA wsa_data;
|
||||
WSAStartup(0x202, &wsa_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
return UC_ERR_OK;
|
||||
return UC_ERR_OK;
|
||||
} else {
|
||||
return UC_ERR_ARCH;
|
||||
}
|
||||
@ -355,14 +355,14 @@ uc_err uc_close(uc_engine *uc)
|
||||
memset(uc, 0, sizeof(*uc));
|
||||
free(uc);
|
||||
|
||||
// free winsock sockets - used so we can use select() for usleep() implementation
|
||||
// free winsock sockets - used so we can use select() for usleep() implementation
|
||||
#ifdef _MSC_VER
|
||||
{
|
||||
WSACleanup();
|
||||
}
|
||||
{
|
||||
WSACleanup();
|
||||
}
|
||||
#endif
|
||||
|
||||
return UC_ERR_OK;
|
||||
return UC_ERR_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user