diff --git a/Source/Core/Common/Src/SDCardUtil.cpp b/Source/Core/Common/Src/SDCardUtil.cpp
index 1638ede08c..27d4895d2c 100644
--- a/Source/Core/Common/Src/SDCardUtil.cpp
+++ b/Source/Core/Common/Src/SDCardUtil.cpp
@@ -171,11 +171,11 @@ static int write_empty(FILE* file, u64 count)
count *= 512;
while (count > 0)
{
- int len = sizeof(empty);
+ u64 len = sizeof(empty);
if (len > count)
len = count;
- if ( fwrite(empty, 1, len, file) != (size_t)len )
+ if ( fwrite(empty, 1, (size_t)len, file) != (size_t)len )
return 1;
count -= len;
diff --git a/Source/Core/Core/Core.vcproj b/Source/Core/Core/Core.vcproj
index b735f21ef5..a157cf6729 100644
--- a/Source/Core/Core/Core.vcproj
+++ b/Source/Core/Core/Core.vcproj
@@ -675,10 +675,6 @@
RelativePath=".\Src\HW\SystemTimers.h"
>
-
-
@@ -750,6 +746,10 @@
RelativePath=".\Src\HW\Sram.h"
>
+
+