From 8e3274f153f89ecf1611fa8468d2d7dbe596a23f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 24 Mar 2009 11:51:12 +0100 Subject: added strlcpy and strlcat (safe BSD C functions) --- tests/service/testservice.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'tests/service') diff --git a/tests/service/testservice.c b/tests/service/testservice.c index 7efa312..76b39b2 100644 --- a/tests/service/testservice.c +++ b/tests/service/testservice.c @@ -13,33 +13,6 @@ #define WOLF_MSG_TESTSERVICE_CANT_OPEN_SCM WOLF_MSG_TESTSERVICE_BASE+1 #define WOLF_MSG_TESTSERVICE_REGISTERING_SERVICE WOLF_MSG_TESTSERVICE_BASE+2 -/* TODO: log with GetLastErrror(), FormatStr(), should be a wrapper in wolf/log, - * the same we should also do for strerror_r - */ -static void wolf_log_win32( wolf_log_level_t level, int category_id, int message_id, const char *format, ... ) { - DWORD last_error = GetLastError( ); - LPVOID buf; - DWORD buf_size; - DWORD res; - - res = FormatMessage( - FORMAT_MESSAGE_ALLOCATE_BUFFER | - FORMAT_MESSAGE_FROM_SYSTEM, - NULL, /* message is from system */ - last_error, /* there is a message with that id */ - 0, /* default language preference */ - (LPTSTR)&buf, /* buffer allocated internally with LocalAlloc */ - 0, /* minimum allocation size */ - NULL ); /* no arguments */ - } - - if( res != 0 ) { - - } - - wolf_log( -} - static void wolf_service_register( void ) { SC_HANDLE scm; -- cgit v1.2.3-54-g00ecf