Armin Novak
14d5cbeacb
[winpr,file] fix issues with FindFirstFile
2023-07-26 10:57:42 +02:00
Armin Novak
62b6c98393
[winpr,file] do not assume order for directory listings
2023-07-24 11:05:13 +02:00
Armin Novak
3d8cb485f4
[warnings] Fixed strict-prototypes warnings
2023-03-06 10:04:59 +01:00
Armin Novak
641022b795
[logging] remove __FUNCTION__ from actual message
...
prefer the log formatter to provide that information.
2023-01-25 16:26:39 +01:00
akallabeth
92d3e3c64a
[winpr] use WINPR_ prefix for conditional includes
2023-01-10 17:38:00 +01:00
akallabeth
5799fb2018
Replace ConvertFromUnicode and ConvertToUnicode
...
* Use new ConvertUtf8ToWChar, ConvertUtf8NToWChar,
ConvertUtf8ToWCharAlloc and ConvertUtf8NToWCharAlloc
* Use new ConvertWCharToUtf8, ConvertWCharNToUtf8,
ConvertWCharToUtf8Alloc and ConvertWCharNToUtf8Alloc
* Use new Stream UTF16 to/from UTF8 read/write functions
* Use new settings UTF16 to/from UTF8 read/write functions
2022-11-28 10:42:36 +01:00
akallabeth
f25261e271
Unifiy string append functions
2022-06-17 08:41:46 +02:00
Zhengyi Fu
e62aaff319
winpr: add GetFileInformationByHandle
2022-03-24 13:40:31 +01:00
Armin Novak
6ed50b4b1d
Refactored WinPR includes
2022-03-03 11:26:48 +01:00
akallabeth
8cc6582044
Unify struct definitions ( #7633 )
...
* Unified enum/struct definitions, fixed include issues
* Fixed mac compilation issues
* Added missing include
* Fixed windows server build warnings
* Fixed VS2010 build issue
* Removed unnecessary library linking
* Fixed ThreadPool WinXP compatibility
* Fixed pr review remarks
2022-02-14 14:59:22 +01:00
Armin Novak
c8571dd5fd
Replaced chmod with safer fchmod
...
* Use fchmod so the file may not change underneath
* Add unit tests for SetFileAttributesA
* Add warning logs for unsupported flags
2021-09-06 10:11:14 +02:00
Armin Novak
610396e197
Fixed compilation warnings
...
Try to get the number of warnings down
2021-08-02 10:28:06 +02:00
Armin Novak
d6c84c28fb
Renamed ArrayList_Add to ArrayList_Append
...
* Do not break API silently
2021-06-16 11:46:42 +02:00
Armin Novak
d36d94766e
Replaced assert with WINPR_ASSERT
2021-06-14 09:37:07 +02:00
Biswapriyo Nath
a3a89a43f7
Fix intialization, remove some unused variables.
2021-04-28 17:11:31 +02:00
akallabeth
ad93ff3f0d
Fixed #6632
2020-12-06 14:48:21 +01:00
akallabeth
66dc4cc9ee
Fixed compilation warnings.
2020-11-10 08:53:43 +01:00
Armin Novak
7c243da6e1
Remove symbols exported by accident.
2019-12-02 10:57:31 +01:00
Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Bernhard Miklautz
162a69b0f0
Merge pull request #5139 from akallabeth/drive_hotplug_shutdown_crash_fix
...
Fixed crash on drive hotplug shutdown.
2019-02-07 10:08:41 +01:00
Armin Novak
c00010478c
Fix FindNextFileA path termination with a single separator.
2019-01-30 15:44:45 +01:00
Armin Novak
2e5fd8d16b
Fixed clang analyzer false positive memory leaks.
...
Added a justification for each #ifndef __clang_analyzer__
2019-01-29 17:17:30 +01:00
Armin Novak
e3c85eb3dc
removed strcpy
2018-12-06 10:17:05 +01:00
Armin Novak
d7d5567891
Fixed missing const.
2018-08-24 13:40:36 +02:00
Martin Fleisz
8248dcb3bb
Merge pull request #4816 from akallabeth/drive_cmd_fix
...
Fix #4680 : Return proper directory name.
2018-08-24 09:45:26 +02:00
Armin Novak
ab18f8f222
Fix #4680 : Return proper directory name.
2018-08-23 10:04:26 +02:00
Ondrej Holy
acbd6e6322
winpr/file: Fix leak found by covscan
...
overwrite_var: Overwriting handle "h" in "h = (HANDLE)0xffffffffffffffff" leaks the handle.
2018-08-22 14:34:02 +02:00
Armin Novak
8b8e85271c
Fixed #4793 : Return correct file handle for existing directory
2018-08-13 13:17:56 +02:00
Armin Novak
ed89328349
Fixed missing argument checks.
2018-07-30 10:46:20 +02:00
Armin Novak
3d8dec7fbf
Removed debug log messages.
2018-07-11 16:37:29 +02:00
Armin Novak
dbfa896d5a
Fixed errno reset.
2018-07-11 16:27:14 +02:00
Armin Novak
2b91095eb3
Fixed pattern detection if path is already a directory.
2018-07-11 10:58:37 +02:00
Armin Novak
30843ef4d8
Code cleanups and more logging.
2018-07-11 10:53:26 +02:00
Armin Novak
269c78802d
Fixed #4199 : ConvertFindDataAToW string length
2017-10-31 16:52:08 +01:00
Armin Novak
3840b27945
Fixed file timestamps.
2017-10-12 11:28:07 +02:00
Armin Novak
9ebfbc1fcb
FindNextFileAx, continue if a inalid file is found.
2017-08-16 10:25:23 +02:00
Armin Novak
efe6971899
Skip FIFO files in listings.
2017-08-04 09:01:13 +02:00
Armin Novak
41f919b8bd
Fixed integer size warnings.
2017-07-24 11:31:48 +02:00
weizhenwei
fa1c65b656
refactor to remove duplicate code and replace free+malloc with realloc
2017-06-22 10:21:20 +08:00
weizhenwei
64fce8717f
fix memroy leak of fd at FindFirstFileW()
2017-06-21 15:26:28 +08:00
Armin Novak
4ba7670e43
Fixed right shift on 32bit platforms.
2017-05-04 09:20:10 +02:00
Armin Novak
d1e7ce9ce0
Fixed FindFirstFileA, do not strip trailing slash
2017-04-27 08:59:21 +02:00
Armin Novak
dafa6cef67
Fixed memory corruption in Find*FileW
2017-04-27 08:31:53 +02:00
Armin Novak
920a76d57e
Fix #3922 : Use stat insead of lstat
2017-04-19 08:28:00 +02:00
Armin Novak
4e32334621
Added error return in GetFileAttributesExA.
2017-04-11 11:34:11 +02:00
Armin Novak
6e270410ea
Fixed broken scoping.
2017-04-06 17:54:44 +02:00
Armin Novak
cb815d6562
Fixed a memory leak and bad free.
2017-04-06 17:46:07 +02:00
David PHAM-VAN
f54326e350
Fix indentation
2017-04-05 15:35:03 -07:00
David PHAM-VAN
30d0bde4ba
Fix FindFirstFile return values
2017-03-31 15:33:28 -07:00
David PHAM-VAN
b46aaeb973
Fix memory leaks, Mixed declarations
2017-03-27 11:15:22 -07:00