546{
547
549
550
551
552
553
558
562
565
567
568 INT FileListSize = 0;
569
571
573
578
579 strOut[0] =
_T(
'\0');
580
585
586
589
590
592 str[cusor] =
_T(
'\0');
593
594
596 {
597
599
600
601 if (!StartLength)
602 {
604 }
605
606
607 szBaseWord[0] =
_T(
'\0');
608 szPrefix[0] =
_T(
'\0');
609
610
611
612
613
615
617 {
618 if (szBaseWord[
i] ==
_T(
'\"'))
620 else
622 }
623
624
625 memset(szSearchPath, 0,
sizeof(szSearchPath));
626
627
629
630
631 if (szSearchPath[0] ==
_T(
'\\') && szSearchPath[1] ==
_T(
'\\') &&
632 szSearchPath[2] ==
_T(
'.') && szSearchPath[3] ==
_T(
'\\'))
633 {
636 _tcscat(szSearchPath, szBaseWord);
637 }
638
639 if (StartLength > 0)
640 {
642 }
643 _tcscpy(LastSearch,szSearchPath);
645 }
646 else
647 {
648 _tcscpy(szSearchPath, LastSearch);
650 StartLength = 0;
651 }
652
655 {
656
658 return;
659 }
660
661
662 do
663 {
665
668 continue;
669
670
671 if (!ShowAll &&
674 {
675 continue;
676 }
677
678
680
682 {
683
685
689 return;
690 }
691
693
695
697
698
699 if (FileListSize == 0)
700 {
704 return;
705
706 }
707
709
710
712 {
713 if (bNext)
714 {
715 if (FileListSize - 1 == Sel)
716 Sel = 0;
717 else
718 Sel++;
719 }
720 else
721 {
722 if (!Sel)
723 Sel = FileListSize - 1;
724 else
725 Sel--;
726 }
727 }
728 else
729 {
730 Sel = 0;
731 }
732
733
734 strOut[0] =
_T(
'\0');
735
736
738 {
741
743 LastSpace = -1;
745
747 {
748 if (szPrefix[
i] ==
_T(
'\"'))
749 bInside = !bInside;
750 if (szPrefix[
i] ==
_T(
' ') && !bInside)
752 }
753
754
755 if (szPrefix[LastSpace + 1] !=
_T(
'\"') && LastSpace != -1)
756 {
757 memmove ( &szPrefix[LastSpace+1], &szPrefix[LastSpace], (
_tcslen(szPrefix)-LastSpace+1) *
sizeof(
TCHAR) );
758
760 {
762 }
763 szPrefix[LastSpace + 1] =
_T(
'\"');
764 }
765 else if (LastSpace == -1)
766 {
767
768 if (szPrefix[0] !=
_T(
'\"'))
769 {
773 }
774 }
775 }
776
779
780
781 if (!NeededQuote)
782 {
784 {
785 if (strOut[
i] ==
_T(
'\"'))
786 NeededQuote = !NeededQuote;
787 }
788 }
789
790 if (NeededQuote || (
_tcslen(szPrefix) && szPrefix[
_tcslen(szPrefix) - 1] ==
_T(
'\"')))
792
794
795
798}
vector< FileInfo > FileList
#define cmd_realloc(ptr, size)
#define INVALID_HANDLE_VALUE
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL FileNameContainsSpecialCharacters(LPTSTR pszFileName)
VOID FindPrefixAndSuffix(LPTSTR strIN, LPTSTR szPrefix, LPTSTR szSuffix)
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
#define memmove(s1, s2, n)
#define FILE_ATTRIBUTE_DIRECTORY
#define ConOutFormatMessage(MessageId,...)
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 INVALID_FILE_ATTRIBUTES
DWORD WINAPI GetLastError(void)
#define GetCurrentDirectory