@@ -20,7 +20,7 @@ use std::ptr;
20
20
use std:: thread;
21
21
use winapi:: shared:: minwindef:: { BOOL , FALSE , FLOAT , HMODULE , LPARAM , LPVOID , LRESULT , UINT } ;
22
22
use winapi:: shared:: minwindef:: { WORD , WPARAM } ;
23
- use winapi:: shared:: ntdef:: { HANDLE , LPCSTR } ;
23
+ use winapi:: shared:: ntdef:: HANDLE ;
24
24
use winapi:: shared:: windef:: { HBRUSH , HDC , HGLRC , HWND } ;
25
25
use winapi:: um:: libloaderapi;
26
26
use winapi:: um:: wingdi:: { self , PFD_DOUBLEBUFFER , PFD_DRAW_TO_WINDOW , PFD_MAIN_PLANE } ;
@@ -659,7 +659,7 @@ fn extension_loader_thread() -> WGLExtensionFunctions {
659
659
let mut extension_functions = WGLExtensionFunctions :: default ( ) ;
660
660
let window = winuser:: CreateWindowExA (
661
661
0 ,
662
- window_class_atom as LPCSTR ,
662
+ window_class_atom. cast ( ) ,
663
663
window_class_name,
664
664
WS_OVERLAPPEDWINDOW | WS_VISIBLE ,
665
665
0 ,
@@ -870,7 +870,7 @@ fn get_proc_address(symbol_name: &str) -> *const c_void {
870
870
unsafe {
871
871
// https://www.khronos.org/opengl/wiki/Load_OpenGL_Functions#Windows
872
872
let symbol_name: CString = CString :: new ( symbol_name) . unwrap ( ) ;
873
- let symbol_ptr = symbol_name. as_ptr ( ) as * const u8 as LPCSTR ;
873
+ let symbol_ptr = symbol_name. as_ptr ( ) ;
874
874
let addr = wglGetProcAddress ( symbol_ptr) as * const c_void ;
875
875
if !addr. is_null ( ) {
876
876
return addr;
0 commit comments