mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Fixed crash with 64bit Rainmeter due to r1038.
This commit is contained in:
		@@ -4868,10 +4868,10 @@ LRESULT CALLBACK CMeterWindow::InitialWndProc(HWND hWnd, UINT uMsg, WPARAM wPara
 | 
			
		||||
	if (uMsg == WM_NCCREATE)
 | 
			
		||||
	{
 | 
			
		||||
		CMeterWindow* window = (CMeterWindow*)((LPCREATESTRUCT)lParam)->lpCreateParams;
 | 
			
		||||
		SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG)window);
 | 
			
		||||
		SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR)window);
 | 
			
		||||
 | 
			
		||||
		// Change the window procedure over to MainWndProc now that GWLP_USERDATA is set
 | 
			
		||||
		SetWindowLongPtr(hWnd, GWLP_WNDPROC, (LONG)WndProc);
 | 
			
		||||
		SetWindowLongPtr(hWnd, GWLP_WNDPROC, (LONG_PTR)WndProc);
 | 
			
		||||
		return TRUE;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user