Header discrepancies

My x64 port of InpOut32
Post Reply
PaulG
New User
Posts: 1
Joined: Mon Sep 06, 2010 4:10 pm

Header discrepancies

Post by PaulG »

Hi,

I have just discovered this project and am looking to replace the DLPort drivers I currently use. However, I have been struggling with the DlPortWritePortUshort and DlPortReadPortUshort.

To cut a long story short, it seems that they have been incorrectly defined in the inpout32drv.cpp file used to generate the DLL. In the .h file they are defined as

Code: Select all

USHORT  _stdcall DlPortReadPortUshort (USHORT port);
void    _stdcall DlPortWritePortUshort(USHORT port, USHORT Value);
In the .cpp file, they are

Code: Select all

USHORT DlPortReadPortUshort (USHORT port)
void DlPortWritePortUshort (USHORT port, USHORT Value)
They are missing the _stdcall directive. This is also the case for the DlPortReadPortUlong and DlPortWritePortUlong functions though I haven't tried to use those yet.

For information, the DLPort DLL has all the functions as _stdcall

Thanks for the project

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

Re: Header discrepancies

Post by phil »

Sorry for the massive delay in answering this - I must have missed the notifications on this post :oops:
Of course you are right - my mistake I'm afraid. I will fix it in the next build.

Thanks for the feedback.
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply