4dk2
Goto Top

error C2220 warning treated as error - no object file generated

USB Treiber Übersetzung von 32 Bit auf 64

Hallo zusammen,
ich will einen 32 bit Treiber für 64 Bit compilieren.

Der Source lässt sich für 32bit ohne errors oder warnings compilieren.

Unter 64Bit erhalte ich 4 Warnings und einen error (siehe unten).

ich habe es auf dem Neusten Beta WDK getestet es geht aber auch mit dem aktuellen 3790.1830 nicht da ist es das gleiche.


das soll die zeile sein wo der Fehler auftritt,


   ntStatus = ForwardAndWait(fdo, Irp);
	if (!NT_SUCCESS(ntStatus))
		return CompleteRequest(Irp, ntStatus, Irp->IoStatus.Information);

und ich hab auch schon nen bisl rumprobiert.
Der fehler ist wohl der zugriff auf die Eigenschaft "Information"
Irp->IoStatus.Information

c:winddk6001EZUSBezusbsys.c(593) : error C2220: warning treated as error - no 'object' file generated
errors in directory c:winddk6001EZUSB
c:winddk6001EZUSBezusbsys.c(593) : error C2220: warning treated as error - no 'object' file generated
c:winddk6001EZUSBezusbsys.c(593) : warning C4242: 'function' : conversion from 'ULONG_PTR' to 'ULONG', possible loss of data
warnings in directory c:winddk6001EZUSB
c:winddk6001EZUSBezusbsys.c(593) : warning C4242: 'function' : conversion from 'ULONG_PTR' to 'ULONG', possible loss of data
c:winddk6001EZUSBezusbsys.c(3043) : warning C4242: '=' : conversion from 'SIZE_T' to 'ULONG', possible loss of data
c:winddk6001EZUSBezusbsys.c(3043) : warning C4242: '=' : conversion from 'SIZE_T' to 'ULONG', possible loss of data
c:winddk6001EZUSBezusbsys.c(4462) : warning C4242: '=' : conversion from '__int64' to 'ULONG', possible loss of data
c:winddk6001EZUSBezusbsys.c(4462) : warning C4242: '=' : conversion from '__int64' to 'ULONG', possible loss of data
c:winddk6001EZUSBezusbsys.c(4534) : warning C4242: '=' : conversion from '__int64' to 'ULONG', possible loss of data
c:winddk6001EZUSBezusbsys.c(4534) : warning C4242: '=' : conversion from '__int64' to 'ULONG', possible loss of data
link.exe /out:objfre_wlh_ia64ia64EZUSB.sys /machine:ia64 @C:winddk6001EZUSBobjfre_wlh_ia64ia64lnk.rsp


danke schonmal für alle antworten

Karsten

Content-Key: 65602

Url: https://administrator.de/contentid/65602

Printed on: April 19, 2024 at 00:04 o'clock