From 09d2893bdb820ba93109d675e014afbc38ae31a2 Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 1 Nov 2004 10:39:30 +0000 Subject: [PATCH] Compilation fix. Add line/file/fn info on XBOX. --- lib/MSWindows/win32_ioctl.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/MSWindows/win32_ioctl.c b/lib/MSWindows/win32_ioctl.c index 74ac445e..bd3da7c1 100644 --- a/lib/MSWindows/win32_ioctl.c +++ b/lib/MSWindows/win32_ioctl.c @@ -1,5 +1,5 @@ /* - $Id: win32_ioctl.c,v 1.40 2004/11/01 09:48:34 rocky Exp $ + $Id: win32_ioctl.c,v 1.41 2004/11/01 10:39:30 rocky Exp $ Copyright (C) 2004 Rocky Bernstein @@ -26,7 +26,7 @@ # include "config.h" #endif -static const char _rcsid[] = "$Id: win32_ioctl.c,v 1.40 2004/11/01 09:48:34 rocky Exp $"; +static const char _rcsid[] = "$Id: win32_ioctl.c,v 1.41 2004/11/01 10:39:30 rocky Exp $"; #ifdef HAVE_WIN32_CDROM @@ -36,7 +36,8 @@ static const char _rcsid[] = "$Id: win32_ioctl.c,v 1.40 2004/11/01 09:48:34 rock #include "undocumented.h" #define FORMAT_ERROR(i_err, psz_msg) \ psz_msg=(char *)LocalAlloc(LMEM_ZEROINIT, 255); \ - sprintf(psz_msg, "error %d\n", i_err) + sprintf(psz_msg, "error file %s: line %d (%s) %d\n", + _FILE__, __LINE__, __PRETTY_FUNCTION__, i_err) #else #include #include @@ -377,7 +378,7 @@ read_audio_sectors_win32ioctl (_img_private_t *env, void *data, lsn_t lsn, CDIO_CD_FRAMESIZE_RAW * nblocks, &dwBytesReturned, NULL ) == 0 ) { char *psz_msg = NULL; - DWORD dw = GetLastError(); + long int i_err = GetLastError(); FORMAT_ERROR(i_err, psz_msg); cdio_info("Error reading audio-mode %lu\n%s)", (long unsigned int) lsn, psz_msg);