diff --git a/src/win32_window.c b/src/win32_window.c index 05009bcb..41abb4f2 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -33,6 +33,7 @@ #include #include #include +#include #define _GLFW_KEY_INVALID -2 @@ -715,7 +716,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, // TODO: Restore vsync if compositing was disabled break; } - case WM_DROPFILES:{ + case WM_DROPFILES: + { // DragQueryFile() takes a LPWSTR for the name so we need a TCHAR string TCHAR szName[MAX_PATH]; @@ -753,8 +755,8 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, _glfwInputDrop(window,_glfw.win32.dropString); DragFinish(hDrop); + break; } - break; } return DefWindowProc(hWnd, uMsg, wParam, lParam);