]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/volume.cpp
WinCE warning fixes.
[wxWidgets.git] / src / msw / volume.cpp
index d82a59aed5cfca670f2be41736ba34aa1f310a5b..86f752e1b642ce5718f9f5650362f37359349413 100644 (file)
@@ -44,6 +44,7 @@
 #include "wx/volume.h"
 
 #include <shellapi.h>
+#include <shlobj.h>
 #include "wx/msw/missing.h"
 
 #if wxUSE_BASE
@@ -289,9 +290,9 @@ static void BuildListFromNN(wxArrayString& list, NETRESOURCE* pResSrc,
 // Function: CompareFcn
 // Purpose: Used to sort the NN list alphabetically, case insensitive.
 //=============================================================================
-static int CompareFcn(wxString* first, wxString* second)
+static int CompareFcn(const wxString& first, const wxString& second)
 {
-    return wxStricmp(first->c_str(), second->c_str());
+    return wxStricmp(first.c_str(), second.c_str());
 } // CompareFcn
 
 //=============================================================================