From 40e6a5c515e02aed41a438d50255b83684e72171 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 27 Jun 2015 22:06:10 +0200 Subject: [PATCH] FolderMemoryCard: Don't assume that C limits are defined. --- pcsx2/gui/MemoryCardFolder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/gui/MemoryCardFolder.cpp b/pcsx2/gui/MemoryCardFolder.cpp index a0c125a219..b33074f27f 100644 --- a/pcsx2/gui/MemoryCardFolder.cpp +++ b/pcsx2/gui/MemoryCardFolder.cpp @@ -1012,7 +1012,7 @@ void FolderMemoryCard::SetSlot( uint slot ) { u32 FolderMemoryCard::GetSizeInClusters() { const u32 clusters = m_superBlock.data.clusters_per_card; - if ( clusters > 0 && clusters < UINT32_MAX ) { + if ( clusters > 0 && clusters < 0xFFFFFFFFu ) { return clusters; } else { return TotalClusters;