Wrong function...
This commit is contained in:
parent
2531ff59b7
commit
998ac634d4
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
$Id: device.c,v 1.1.2.7 2003/07/29 23:21:01 guus Exp $
|
$Id: device.c,v 1.1.2.8 2003/08/01 08:18:22 guus Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
@ -177,7 +177,7 @@ bool setup_device(void)
|
||||||
len = sizeof(adaptername);
|
len = sizeof(adaptername);
|
||||||
RegQueryValueEx(key2, "Name", 0, 0, adaptername, &len);
|
RegQueryValueEx(key2, "Name", 0, 0, adaptername, &len);
|
||||||
|
|
||||||
RegKeyClose(key2);
|
RegCloseKey(key2);
|
||||||
|
|
||||||
if(device) {
|
if(device) {
|
||||||
if(!strcmp(device, adapterid)) {
|
if(!strcmp(device, adapterid)) {
|
||||||
|
@ -203,7 +203,7 @@ bool setup_device(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RegKeyClose(key);
|
RegCloseKey(key);
|
||||||
|
|
||||||
if(!found) {
|
if(!found) {
|
||||||
logger(LOG_ERR, _("No Windows tap device found!"));
|
logger(LOG_ERR, _("No Windows tap device found!"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue