Bug in hwinterfacedrv.c

My x64 port of InpOut32
Post Reply
jctaz
New User
Posts: 1
Joined: Thu Feb 05, 2015 11:57 pm

Bug in hwinterfacedrv.c

Post by jctaz » Mon Feb 09, 2015 5:24 pm

HI Phil
Nice port of the software. I found and fixed a bug in hwinterfacedrv.c which prevents 32-bit writes from working. The original code and the fix are below:

// WRITE_PORT_ULONG(&(lData[0]), lData[1]); //Short 0=Address long 1=Value
WRITE_PORT_ULONG((PULONG)address[0], lData[1]); //Short 0=Address Short 1=Value

User avatar
phil
Site Admin
Posts: 5456
Joined: Sun Apr 06, 2003 11:12 pm

Re: Bug in hwinterfacedrv.c

Post by phil » Mon Feb 09, 2015 5:44 pm

Yes, others have also found this bug. Unfortunately it cant be fixed as I have no way of signing the driver right now. I'm looking at getting a certificate but they dont come cheap.There is one provider tht cliams to provide certificates to open source projects free - but they are not very quick to respond to my emails and requests.

We shall see if that ever comes through and works, if not, the only small chance of getting it working is if I purchase a certificate myself ($$$) which I might do for my other projects but its not easy as most certificate providers dont offer code signing certificates to individuals (only companies).

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
phil
Site Admin
Posts: 5456
Joined: Sun Apr 06, 2003 11:12 pm

Re: Bug in hwinterfacedrv.c

Post by phil » Mon Feb 09, 2015 5:45 pm

Oh, I spoke too soon, my latest certificate request has been accepted. I will see tonight if I can sign the driver with it and if so, I can finally fix these bugs :)

Will let you know how I get on.

Thanks again,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
phil
Site Admin
Posts: 5456
Joined: Sun Apr 06, 2003 11:12 pm

Re: Bug in hwinterfacedrv.c

Post by phil » Tue Feb 10, 2015 12:21 am

Oh Well, back to square one... The "free" open source code signing cert does not work for drivers.
Oh well - I will have to try and buy an expensive one (pita as I need to get all my documents notarised and that alone is not cheap in the UK).

One day I will be able to fix this bug with a bit of luck!

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Post Reply