From 008fea5d894f62d8f70a3eebe27249276e729588 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Thu, 10 Nov 2016 02:46:56 +0000 Subject: [PATCH] common|cdvdgigaherz: Fix API sign mismatch The typedef and function declaration don't quite match. --- common/include/PS2Edefs.h | 2 +- plugins/cdvdGigaherz/src/CDVD.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/include/PS2Edefs.h b/common/include/PS2Edefs.h index 97b135e683..6e1f6fa53c 100644 --- a/common/include/PS2Edefs.h +++ b/common/include/PS2Edefs.h @@ -437,7 +437,7 @@ void CALLBACK CDVDnewDiskCB(void (*callback)()); // new funcs // read a track directly -s32 CALLBACK CDVDreadSector(u8 *buffer, s32 lsn, int mode); +s32 CALLBACK CDVDreadSector(u8 *buffer, u32 lsn, int mode); // improved getBuffer s32 CALLBACK CDVDgetBuffer2(u8 *buffer); diff --git a/plugins/cdvdGigaherz/src/CDVD.cpp b/plugins/cdvdGigaherz/src/CDVD.cpp index 47d854305e..580f8529aa 100644 --- a/plugins/cdvdGigaherz/src/CDVD.cpp +++ b/plugins/cdvdGigaherz/src/CDVD.cpp @@ -238,7 +238,7 @@ EXPORT s32 CALLBACK CDVDgetDualInfo(s32 *dualType, u32 *_layer1start) int lastReadInNewDiskCB = 0; char directReadSectorBuffer[2448]; -EXPORT s32 CALLBACK CDVDreadSector(u8 *buffer, s32 lsn, int mode) +EXPORT s32 CALLBACK CDVDreadSector(u8 *buffer, u32 lsn, int mode) { return cdvdDirectReadSector(lsn, mode, (char *)buffer); }