diff --git a/ruby/video/direct3d.cpp b/ruby/video/direct3d.cpp index 905fb161..2549506d 100755 --- a/ruby/video/direct3d.cpp +++ b/ruby/video/direct3d.cpp @@ -4,7 +4,7 @@ #undef interface static LRESULT CALLBACK VideoDirect3D9_WindowProcedure(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { - if(msg == WM_SYSKEYDOWN && waram == VK_F4) return false; + if(msg == WM_SYSKEYDOWN && wparam == VK_F4) return false; return DefWindowProc(hwnd, msg, wparam, lparam); } diff --git a/ruby/video/directdraw.cpp b/ruby/video/directdraw.cpp index 7b6aeff5..1902a56e 100755 --- a/ruby/video/directdraw.cpp +++ b/ruby/video/directdraw.cpp @@ -2,7 +2,7 @@ #undef interface static LRESULT CALLBACK VideoDirectDraw7_WindowProcedure(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { - if(msg == WM_SYSKEYDOWN && waram == VK_F4) return false; + if(msg == WM_SYSKEYDOWN && wparam == VK_F4) return false; return DefWindowProc(hwnd, msg, wparam, lparam); } diff --git a/ruby/video/gdi.cpp b/ruby/video/gdi.cpp index 7d935d37..52297248 100755 --- a/ruby/video/gdi.cpp +++ b/ruby/video/gdi.cpp @@ -1,5 +1,5 @@ static LRESULT CALLBACK VideoGDI_WindowProcedure(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { - if(msg == WM_SYSKEYDOWN && waram == VK_F4) return false; + if(msg == WM_SYSKEYDOWN && wparam == VK_F4) return false; return DefWindowProc(hwnd, msg, wparam, lparam); } diff --git a/ruby/video/wgl.cpp b/ruby/video/wgl.cpp index 01982382..e1ed8627 100755 --- a/ruby/video/wgl.cpp +++ b/ruby/video/wgl.cpp @@ -4,7 +4,7 @@ #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 static LRESULT CALLBACK VideoOpenGL32_WindowProcedure(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { - if(msg == WM_SYSKEYDOWN && waram == VK_F4) return false; + if(msg == WM_SYSKEYDOWN && wparam == VK_F4) return false; return DefWindowProc(hwnd, msg, wparam, lparam); }