568 INT FileListSize = 0;
579 strOut[0] =
_T(
'\0');
592 str[cusor] =
_T(
'\0');
607 szBaseWord[0] =
_T(
'\0');
608 szPrefix[0] =
_T(
'\0');
618 if (szBaseWord[
i] ==
_T(
'\"'))
625 memset(szSearchPath, 0,
sizeof(szSearchPath));
631 if (szSearchPath[0] ==
_T(
'\\') && szSearchPath[1] ==
_T(
'\\') &&
632 szSearchPath[2] ==
_T(
'.') && szSearchPath[3] ==
_T(
'\\'))
636 _tcscat(szSearchPath, szBaseWord);
643 _tcscpy(LastSearch,szSearchPath);
648 _tcscpy(szSearchPath, LastSearch);
699 if (FileListSize == 0)
715 if (FileListSize - 1 == Sel)
723 Sel = FileListSize - 1;
734 strOut[0] =
_T(
'\0');
748 if (szPrefix[
i] ==
_T(
'\"'))
750 if (szPrefix[
i] ==
_T(
' ') && !bInside)
755 if (szPrefix[LastSpace + 1] !=
_T(
'\"') && LastSpace != -1)
757 memmove ( &szPrefix[LastSpace+1], &szPrefix[LastSpace], (
_tcslen(szPrefix)-LastSpace+1) *
sizeof(
TCHAR) );
763 szPrefix[LastSpace + 1] =
_T(
'\"');
765 else if (LastSpace == -1)
768 if (szPrefix[0] !=
_T(
'\"'))
785 if (strOut[
i] ==
_T(
'\"'))
786 NeededQuote = !NeededQuote;
790 if (NeededQuote || (
_tcslen(szPrefix) && szPrefix[
_tcslen(szPrefix) - 1] ==
_T(
'\"')))
#define ConOutFormatMessage(MessageId,...)
#define memmove(s1, s2, n)
VOID FindPrefixAndSuffix(LPTSTR strIN, LPTSTR szPrefix, LPTSTR szSuffix)
BOOL FileNameContainsSpecialCharacters(LPTSTR pszFileName)
int _tcscmp(const _TCHAR *s1, const _TCHAR *s2)
vector< FileInfo > FileList
#define INVALID_HANDLE_VALUE
_TCHAR * _tcscpy(_TCHAR *to, const _TCHAR *from)
DWORD WINAPI GetLastError(VOID)
void __cdecl qsort(_Inout_updates_bytes_(_NumOfElements *_SizeOfElements) void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
#define GetCurrentDirectory
size_t __cdecl _tcslen(const _TCHAR *str)
#define FILE_ATTRIBUTE_DIRECTORY
#define INVALID_FILE_ATTRIBUTES
#define cmd_realloc(ptr, size)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_TCHAR * _tcscat(_TCHAR *s, const _TCHAR *append)
BOOL WINAPI FindClose(HANDLE hFindFile)