mirror of
				https://github.com/notepad-plus-plus/notepad-plus-plus.git
				synced 2025-11-04 05:23:56 +01:00 
			
		
		
		
	Fix incorrect type conversion
UINT -> UINT_PTR as declared in MSDN. Closes #2448
This commit is contained in:
		
							parent
							
								
									e6fad9bd4f
								
							
						
					
					
						commit
						2007cac5a6
					
				@ -116,18 +116,18 @@ void LastRecentFileList::updateMenu()
 | 
			
		||||
			cleanFileList = TEXT("Empty Recent Files List");
 | 
			
		||||
 | 
			
		||||
		if (!isSubMenuMode())
 | 
			
		||||
			::InsertMenu(_hMenu, _posBase + 0, MF_BYPOSITION, UINT(-1), 0);
 | 
			
		||||
			::InsertMenu(_hMenu, _posBase + 0, MF_BYPOSITION, static_cast<UINT_PTR>(-1), 0);
 | 
			
		||||
 | 
			
		||||
		::InsertMenu(_hMenu, _posBase + 1, MF_BYPOSITION, IDM_FILE_RESTORELASTCLOSEDFILE, openRecentClosedFile.c_str());
 | 
			
		||||
		::InsertMenu(_hMenu, _posBase + 2, MF_BYPOSITION, IDM_OPEN_ALL_RECENT_FILE, openAllFiles.c_str());
 | 
			
		||||
		::InsertMenu(_hMenu, _posBase + 3, MF_BYPOSITION, IDM_CLEAN_RECENT_FILE_LIST, cleanFileList.c_str());
 | 
			
		||||
		::InsertMenu(_hMenu, _posBase + 4, MF_BYPOSITION, UINT(-1), 0);
 | 
			
		||||
		::InsertMenu(_hMenu, _posBase + 4, MF_BYPOSITION, static_cast<UINT_PTR>(-1), 0);
 | 
			
		||||
		_hasSeparators = true;
 | 
			
		||||
 | 
			
		||||
		if (isSubMenuMode())
 | 
			
		||||
		{
 | 
			
		||||
			::InsertMenu(_hParentMenu, _posBase + 0, MF_BYPOSITION | MF_POPUP, UINT(_hMenu), (LPCTSTR)recentFileList.c_str());
 | 
			
		||||
			::InsertMenu(_hParentMenu, _posBase + 1, MF_BYPOSITION, UINT(-1), 0);
 | 
			
		||||
			::InsertMenu(_hParentMenu, _posBase + 0, MF_BYPOSITION | MF_POPUP, reinterpret_cast<UINT_PTR>(_hMenu), (LPCTSTR)recentFileList.c_str());
 | 
			
		||||
			::InsertMenu(_hParentMenu, _posBase + 1, MF_BYPOSITION, static_cast<UINT_PTR>(-1), 0);
 | 
			
		||||
		}
 | 
			
		||||
		_pAccelerator->updateFullMenu();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user