PATCH: dlls/ntdll/cdrom.c

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Tue Jan 21 03:16:50 CST 2003


Tested on SuSE Linux 8.1 and FreeBSD 4.7.

Gerald


Only declare variables we actually need.

Index: cdrom.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/cdrom.c,v
retrieving revision 1.22
diff -u -3 -p -r1.22 cdrom.c
--- cdrom.c	7 Jan 2003 20:36:28 -0000	1.22
+++ cdrom.c	21 Jan 2003 09:13:10 -0000
@@ -175,7 +175,9 @@ static int CDROM_GetIdeInterface(int dev
 void CDROM_InitRegistry(int dev)
 {
     int portnum, targetid;
+#ifdef HDIO_GET_DMA
     int dma;
+#endif
     OBJECT_ATTRIBUTES attr;
     UNICODE_STRING nameW;
     WCHAR dataW[50];



More information about the wine-patches mailing list