dlls/winedos/int21.c -- type adjustments
Gerald Pfeifer
gerald at pfeifer.com
Thu Nov 22 04:46:09 CST 2007
Minor type adjustments I ran into while working on other stuff.
Gerald
ChangeLog:
Use unsigned long instead of long for return values of SetFilePointer.
Adjust type of loop variable in INT21_Ioctl_Char().
Index: int21.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/int21.c,v
retrieving revision 1.90
diff -u -3 -p -r1.90 int21.c
--- int21.c 18 Jun 2007 13:07:13 -0000 1.90
+++ int21.c 22 Nov 2007 10:39:08 -0000
@@ -1385,7 +1385,7 @@ static void INT21_SequentialReadFromFCB(
struct XFCB *xfcb;
HANDLE handle;
DWORD record_number;
- long position;
+ unsigned long position;
BYTE *disk_transfer_area;
UINT bytes_read;
BYTE AL_result;
@@ -1465,7 +1465,7 @@ static void INT21_SequentialWriteToFCB(
struct XFCB *xfcb;
HANDLE handle;
DWORD record_number;
- long position;
+ unsigned long position;
BYTE *disk_transfer_area;
UINT bytes_written;
BYTE AL_result;
@@ -1541,7 +1541,7 @@ static void INT21_ReadRandomRecordFromFC
struct XFCB *xfcb;
HANDLE handle;
DWORD record_number;
- long position;
+ unsigned long position;
BYTE *disk_transfer_area;
UINT bytes_read;
BYTE AL_result;
@@ -1614,7 +1614,7 @@ static void INT21_WriteRandomRecordToFCB
struct XFCB *xfcb;
HANDLE handle;
DWORD record_number;
- long position;
+ unsigned long position;
BYTE *disk_transfer_area;
UINT bytes_written;
BYTE AL_result;
@@ -1689,7 +1689,7 @@ static void INT21_RandomBlockReadFromFCB
struct XFCB *xfcb;
HANDLE handle;
DWORD record_number;
- long position;
+ unsigned long position;
BYTE *disk_transfer_area;
UINT records_requested;
UINT bytes_requested;
@@ -1780,7 +1780,7 @@ static void INT21_RandomBlockWriteToFCB(
struct XFCB *xfcb;
HANDLE handle;
DWORD record_number;
- long position;
+ unsigned long position;
BYTE *disk_transfer_area;
UINT records_requested;
UINT bytes_requested;
@@ -2733,7 +2733,7 @@ static void INT21_IoctlHPScanHandler( CO
*/
static void INT21_Ioctl_Char( CONTEXT86 *context )
{
- int status, i;
+ int status;
int IsConsoleIOHandle = 0;
IO_STATUS_BLOCK io;
FILE_INTERNAL_INFORMATION info;
@@ -2750,6 +2750,7 @@ static void INT21_Ioctl_Char( CONTEXT86
return;
}
} else {
+ UINT i;
for (i = 0; i < NB_MAGIC_DEVICES; i++)
{
if (!magic_devices[i].handle) continue;
More information about the wine-patches
mailing list