mirror of
https://github.com/reactos/reactos.git
synced 2026-07-02 08:44:25 +08:00
39934ca5e2cc0c5872c5e20addacdbfe0875fb73
- Only check for options at the beginning of the command line (subsequent code already assumed the filenames were at the end). - Give an error message if too many parameters are given. - If no destination is given, default to current directory. - Replace excessively complicated code to get source directory with single GetFullPathName call; hopefully that is sufficient. Check for pszFile == NULL to prevent crash that occurred when source was "/..". - To determine whether source wildcard matches are files or directories, just use WIN32_FIND_DATA's dwFileAttributes; it's easier than constructing paths to pass to IsExistingFile/IsExistingDirectory. - Fix memory leaks: some returns were missing freep(arg). svn path=/trunk/; revision=38910
Languages
C
86.6%
C++
10.6%
Python
0.7%
Assembly
0.5%
CMake
0.5%
Other
0.8%