X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27529614c292a298e67dd8db1f169c94a4df204c..fd323a5e230f2b08227b307ff900698fb85d5519:/src/msw/ole/droptgt.cpp diff --git a/src/msw/ole/droptgt.cpp b/src/msw/ole/droptgt.cpp index b1d2e04fc0..d1c729dbb4 100644 --- a/src/msw/ole/droptgt.cpp +++ b/src/msw/ole/droptgt.cpp @@ -30,7 +30,7 @@ #include -#if USE_DRAG_AND_DROP +#if wxUSE_DRAG_AND_DROP #include @@ -371,7 +371,7 @@ bool wxFileDropTarget::OnDrop(long x, long y, const void *pData) HDROP hdrop = (HDROP)pData; // @@ it works, but I'm not sure about it // get number of files (magic value -1) - UINT nFiles = ::DragQueryFile(hdrop, -1, NULL, 0); + UINT nFiles = ::DragQueryFile(hdrop, (unsigned)-1, NULL, 0u); // for each file get the length, allocate memory and then get the name char **aszFiles = new char *[nFiles]; @@ -416,4 +416,4 @@ wxDataFormat wxFileDropTarget::GetFormat(size_t WXUNUSED(n)) const } #endif - // USE_DRAG_AND_DROP + // wxUSE_DRAG_AND_DROP