From b5bec9158d8418cd619769a1cd7e5da0536a3010 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 2 Dec 2012 21:41:42 +0100 Subject: [PATCH] Fixed oversight in 28b96e7 --- Library/Rainmeter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Library/Rainmeter.cpp b/Library/Rainmeter.cpp index 49a8368e..bc54e7d6 100644 --- a/Library/Rainmeter.cpp +++ b/Library/Rainmeter.cpp @@ -2948,10 +2948,7 @@ void CRainmeter::ShowContextMenu(POINT pos, CMeterWindow* meterWindow) HMENU rainmeterMenu = menu; menu = CreateSkinMenu(meterWindow, 0, allSkinsMenu); - WCHAR buffer[256]; - GetMenuString(menu, 0, buffer, 256, MF_BYPOSITION); - - InsertMenu(menu, IDM_CLOSESKIN, MF_BYCOMMAND | MF_POPUP, (UINT_PTR)rainmeterMenu, buffer); + InsertMenu(menu, IDM_CLOSESKIN, MF_BYCOMMAND | MF_POPUP, (UINT_PTR)rainmeterMenu, L"Rainmeter"); InsertMenu(menu, IDM_CLOSESKIN, MF_BYCOMMAND | MF_SEPARATOR, 0, NULL); } else