From f701f0c34708c687fee79a14a3774badce8ef4e4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 10 Oct 2013 08:00:15 -0700 Subject: [PATCH] Windows buildfix. --- Windows/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Windows/main.cpp b/Windows/main.cpp index 2b0f9673b..296c6ce41 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -62,6 +62,10 @@ void LaunchBrowser(const char *url) { ShellExecute(NULL, L"open", ConvertUTF8ToWString(url).c_str(), NULL, NULL, SW_SHOWNORMAL); } +void Vibrate(int length_ms) { + // Ignore on PC +} + bool DoesVersionMatchWindows(const u32 major, const u32 minor, const u32 spMajor = 0, const u32 spMinor = 0) { u64 conditionMask = 0; OSVERSIONINFOEX osvi; @@ -81,7 +85,7 @@ bool DoesVersionMatchWindows(const u32 major, const u32 minor, const u32 spMajor const u32 typeMask = VER_MAJORVERSION | VER_MINORVERSION | VER_SERVICEPACKMAJOR | VER_SERVICEPACKMINOR; - return VerifyVersionInfo(&osvi, typeMask, conditionMask); + return VerifyVersionInfo(&osvi, typeMask, conditionMask) != FALSE; } std::string GetWindowsVersion() {