diff --git a/Source/DesktopImageSource.cpp b/Source/DesktopImageSource.cpp index b5301d74..e1c3aea2 100644 --- a/Source/DesktopImageSource.cpp +++ b/Source/DesktopImageSource.cpp @@ -192,7 +192,7 @@ public: UINT width, height; LPBYTE lpData = GetCursorData(hIcon, ii, width, height); - if(lpData && widrh && height) + if(lpData && width && height) { cursorTexture = CreateTexture(width, height, GS_BGRA, lpData, FALSE); if(cursorTexture)