wnaspi32: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-11-24 17:23:14 +01:00
parent d373c1a16f
commit b089dc16bf
4 changed files with 2 additions and 18 deletions

View File

@ -2,8 +2,6 @@ MODULE = wnaspi32.dll
IMPORTLIB = wnaspi32
IMPORTS = advapi32
EXTRADLLFLAGS = -mcygwin
C_SRCS = \
aspi.c \
winaspi32.c

View File

@ -29,14 +29,11 @@
* aspi controllers, e-mail me if you need help.
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdarg.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
@ -45,7 +42,6 @@
#include "winescsi.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(aspi);
@ -132,5 +128,5 @@ DWORD ASPI_GetHCforController( int controller )
}
RegCloseKey(hkeyPort);
return (atoiW(&wPortName[9]) << 16) + atoiW(&wBusName[9]);
return (wcstol(&wPortName[9], NULL, 10) << 16) + wcstol(&wBusName[9], NULL, 10);
}

View File

@ -26,11 +26,6 @@
#include "winbase.h"
#include "pshpack1.h"
#ifdef __cplusplus
extern "C" {
#endif /* #ifdef __cplusplus */
/*********** OLD ****************/
/* Target status codes */
#define STATUS_GOOD 0x00
@ -76,9 +71,6 @@ extern "C" {
#define SENSE_BUFFER(prb) (&prb->CDBByte[prb->SRB_CDBLen])
#ifdef __cplusplus
}
#endif /* #ifdef __cplusplus */
#include "poppack.h"
#endif

View File

@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <assert.h>
#include <stdlib.h>
#include <stdarg.h>