From e8b946154103b8d583f6663b63ff2732ca5533e3 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 23 Oct 2011 10:41:32 +0000 Subject: [PATCH] Minor change. --- Library/Rainmeter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 232a7362..28cebf0c 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -1061,7 +1061,7 @@ int CRainmeter::Initialize(HWND hParent, HINSTANCE hInstance, LPCWSTR szPath) if (RegQueryValueEx(hKey, L"Language", NULL, &type, (LPBYTE)tmpSzPath, (LPDWORD)&size) != ERROR_SUCCESS || type != REG_SZ) { - tmpSzPath = L'\0'; + tmpSzPath[0] = L'\0'; } RegCloseKey(hKey); }