projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Headers moved a bit.
[wxWidgets.git]
/
src
/
common
/
filefn.cpp
diff --git
a/src/common/filefn.cpp
b/src/common/filefn.cpp
index dc4910db9a4af0cc2057c4e084f9816ee44a7b84..88d201fa0311b95bf010c9161f2d205b32a2b5c8 100644
(file)
--- a/
src/common/filefn.cpp
+++ b/
src/common/filefn.cpp
@@
-612,7
+612,6
@@
wxChar *wxExpandPath(wxChar *buf, const wxChar *name)
return wxRealPath(buf);
}
return wxRealPath(buf);
}
-
/* Contract Paths to be build upon an environment variable
component:
/* Contract Paths to be build upon an environment variable
component:
@@
-1220,6
+1219,18
@@
wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf)
#endif
}
#endif
}
+bool wxGetTempFileName(const wxString& prefix, wxString& buf)
+{
+ wxChar buf2[512];
+ if (wxGetTempFileName(prefix, buf2) != (wxChar*) NULL)
+ {
+ buf = buf2;
+ return TRUE;
+ }
+ else
+ return FALSE;
+}
+
// Get first file name matching given wild card.
#ifdef __UNIX__
// Get first file name matching given wild card.
#ifdef __UNIX__
@@
-1293,7
+1304,9
@@
wxString wxFindNextFile()
nextDir != NULL;
nextDir = readdir(gs_dirStream) )
{
nextDir != NULL;
nextDir = readdir(gs_dirStream) )
{
- if (wxMatchWild(name, nextDir->d_name))
+ if (wxMatchWild(name, nextDir->d_name, FALSE) && // RR: added FALSE to find hidden files
+ strcmp(nextDir->d_name, ".") &&
+ strcmp(nextDir->d_name, "..") )
{
result.Empty();
if ( !path.IsEmpty() )
{
result.Empty();
if ( !path.IsEmpty() )