]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dir.cpp
reverted wxSocket changes of rev 48723 as they broke linking under non-Unix systems
[wxWidgets.git] / src / msw / dir.cpp
index bfca51b3225427bc91c2c21c8cc9d7583c53d243..5525d72a611517124ccef1474efe02717e140c28 100644 (file)
@@ -62,7 +62,7 @@ static inline void FreeFindData(FIND_DATA fd)
 static inline FIND_DATA FindFirst(const wxString& spec,
                                       FIND_STRUCT *finddata)
 {
-        return ::FindFirstFile(spec, finddata);
+        return ::FindFirstFile(spec.fn_str(), finddata);
 }
 
 static inline bool FindNext(FIND_DATA fd, FIND_STRUCT *finddata)