diff --git a/win32/libpng/libpng.vcxproj b/win32/libpng/libpng.vcxproj
index e8c31817..339ab8e8 100644
--- a/win32/libpng/libpng.vcxproj
+++ b/win32/libpng/libpng.vcxproj
@@ -222,6 +222,7 @@ COPY "$(ProjectDir)src\scripts\pnglibconf.h.prebuilt" "$(ProjectDir)src\pnglibco
false
false
false
+ ProgramDatabase
Windows
diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp
index 5abac8fc..8387efc3 100644
--- a/win32/wsnes9x.cpp
+++ b/win32/wsnes9x.cpp
@@ -4383,7 +4383,7 @@ RECT GetWindowMargins(HWND hwnd, UINT width)
rcMargins.top = abs(rcMargins.top);
if (!GUI.HideMenu) {
- RECT rcTemp = {0,0,width,0x7FFF}; // 0x7FFF="Infinite" height
+ RECT rcTemp = {0,0,(LONG)width,0x7FFF}; // 0x7FFF="Infinite" height
SendMessage(hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rcTemp);
// Adjust our previous calculation to compensate for menu