From 22c5d6a340d4db9ff1e2ad587d8ee47ca4332f3c Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 5 Apr 2012 13:27:34 +0300 Subject: [PATCH] Changed to check for updates from GitHub rather than Google Code --- Library/UpdateCheck.cpp | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/Library/UpdateCheck.cpp b/Library/UpdateCheck.cpp index 09c24228..b13de8ef 100644 --- a/Library/UpdateCheck.cpp +++ b/Library/UpdateCheck.cpp @@ -27,18 +27,19 @@ void CheckVersion(void* dummy) { int version = 0; - HINTERNET hRootHandle = InternetOpen(L"Rainmeter", - INTERNET_OPEN_TYPE_PRECONFIG, - NULL, - NULL, - 0); + HINTERNET hRootHandle = InternetOpen( + L"Rainmeter", + INTERNET_OPEN_TYPE_PRECONFIG, + NULL, + NULL, + 0); + if (hRootHandle == NULL) { - Log(LOG_ERROR, L"CheckUpdate: InternetOpen failed"); return; } - HINTERNET hUrlDump = InternetOpenUrl(hRootHandle, L"http://rainmeter.googlecode.com/svn/version", NULL, NULL, INTERNET_FLAG_RESYNCHRONIZE, 0); + HINTERNET hUrlDump = InternetOpenUrl(hRootHandle, L"http://rainmeter.github.com/rainmeter/release", NULL, NULL, INTERNET_FLAG_RESYNCHRONIZE, 0); if (hUrlDump) { DWORD dwSize; @@ -79,16 +80,8 @@ void CheckVersion(void* dummy) Rainmeter->SetNewVersion(false); } } - else - { - Log(LOG_ERROR, L"CheckUpdate: InternetReadFile failed"); - } InternetCloseHandle(hUrlDump); } - else - { - Log(LOG_ERROR, L"CheckUpdate: InternetOpenUrl failed"); - } InternetCloseHandle(hRootHandle); }