Michaël Van Canneyt
6f6a003414
* Patches from Pascal Riekenberg, some small corrections
2022-05-13 08:52:42 +02:00
marcoonthegit
dcb3906741
* typo fix in last commit.
2022-04-27 16:47:15 +02:00
marcoonthegit
b42bc966ac
* fix bit setting macros in windows unit. Should fix bug #39272 .
...
(bit setting only allowed setting bits to one, not zero, and not added).
2022-04-27 15:21:15 +02:00
Ondrej Pokorny
0ae0e741cf
win: fix default ShortDateFormat and LongDateFormat
2021-08-11 11:37:43 +00:00
Ondrej Pokorny
2c81b44b1c
win: fix default ShortDateFormat and LongDateFormat
2021-08-11 11:37:43 +00:00
svenbarth
229506acd0
* fix for Mantis #39147 : apply adjusted patch (especially more paranoid checks) from Serge Anvarov
...
git-svn-id: trunk@49581 -
2021-07-06 21:16:04 +00:00
marco
98d35bb8cb
* redo psd constants, mantis #39022
...
git-svn-id: trunk@49565 -
2021-06-26 18:36:37 +00:00
marco
8ad6271fa1
* avoid rangecheck mantis 0038791
...
git-svn-id: trunk@49250 -
2021-04-23 19:06:18 +00:00
marco
e31923c290
* use W variant to get localestrs.
...
git-svn-id: trunk@49244 -
2021-04-22 14:00:51 +00:00
marco
787798e96f
* split propsheetheader in -A and -W variants.
...
git-svn-id: trunk@49101 -
2021-04-02 14:54:40 +00:00
svenbarth
5a20531d9b
* rework the basic event on Windows so that peventstate directly represents the Event handle
...
git-svn-id: trunk@49068 -
2021-03-27 19:48:32 +00:00
florian
7d5b0d2382
* handle rawbytestrings in Win32Ansi2UnicodeMove properly, resolves #38299
...
git-svn-id: trunk@48021 -
2021-01-03 22:55:37 +00:00
ondrej
3f605a5b50
win rtl: load GetTimeZoneInformationForYear dynamically. Issue #38192
...
git-svn-id: trunk@47817 -
2020-12-19 11:57:58 +00:00
ondrej
6eb37beb24
win32: SysErrorMessage: ignore inserts (when not used the messages with inserts are empty) and allocate message buffer
...
git-svn-id: trunk@47748 -
2020-12-10 17:04:12 +00:00
ondrej
1a0ba60de6
* revert r47598: implement TRandomGenerator
...
git-svn-id: trunk@47605 -
2020-11-27 04:53:06 +00:00
ondrej
c4dd3b661a
* rtl: implement TRandomGenerator for thread-safe random
...
git-svn-id: trunk@47598 -
2020-11-26 05:59:00 +00:00
ondrej
8ce015535a
* FileSetDate with TDateTime and UTC for file names
...
git-svn-id: trunk@47398 -
2020-11-12 14:36:12 +00:00
ondrej
3ea339400e
* FileGetDate, FileSetDate linux compilation
...
git-svn-id: trunk@47397 -
2020-11-12 13:55:01 +00:00
ondrej
d899c9fca4
* FileGetDate, FileSetDate with TDateTime and UTC
...
git-svn-id: trunk@47396 -
2020-11-12 13:36:39 +00:00
ondrej
39674e2852
* win: fix GetLocalTimeOffset lower boundary
...
git-svn-id: trunk@47323 -
2020-11-05 12:54:35 +00:00
ondrej
c64429cdd0
* lazy thread initialization support
...
git-svn-id: trunk@47308 -
2020-11-04 14:55:40 +00:00
ondrej
934f2dc55d
* introduce NowUTC() and GetUniversalTime()
...
git-svn-id: trunk@47306 -
2020-11-04 09:34:08 +00:00
ondrej
a02d676b06
GetLocalTimeOffset: add InputIsUTC parameter to DateTime-aware overloads
...
git-svn-id: trunk@47293 -
2020-11-03 18:15:16 +00:00
marco
b06727d8af
* remove windows.pboolean, mantis #38019
...
git-svn-id: trunk@47275 -
2020-11-01 19:59:58 +00:00
svenbarth
71c30761dd
* fix for Mantis #38020 : apply patch by Sergey Larin to use GetModuleHandle instead of LoadLibrary to retrieve GetTickCount64
...
git-svn-id: trunk@47274 -
2020-11-01 19:40:39 +00:00
Tomas Hajny
5c119d5f67
* fix for bug #38021 based on patch by Sergey Larin
...
git-svn-id: trunk@47269 -
2020-11-01 16:46:52 +00:00
ondrej
0d08b98d47
GetLocalTimeOffset: DateTime-aware overloads (Windows supported, Unix is a ToDo). Issue #35710
...
git-svn-id: trunk@47206 -
2020-10-26 12:29:18 +00:00
Tomas Hajny
1a4fdc7313
* fix for broken wince compilation after r46863
...
git-svn-id: trunk@46874 -
2020-09-15 21:36:01 +00:00
Tomas Hajny
288c7e3c9e
* Do_IsDevice treats pipes and sockets the same way as character devices
...
git-svn-id: trunk@46863 -
2020-09-13 22:08:18 +00:00
svenbarth
c53422e4ef
* handle reparse points that are neither symlinks nor mount points as normal files
...
git-svn-id: trunk@46855 -
2020-09-12 08:03:10 +00:00
svenbarth
200e20fd71
* handle unknown reparse tags as non-symlinks
...
git-svn-id: trunk@46761 -
2020-09-04 14:41:40 +00:00
svenbarth
11b601d44c
* TThread.Terminate does not have any platform specific behavior (it should only set FTerminated to true and call TerminatedSet), thus move it to the platform independant part
...
Notes:
- Netware had a ThreadSwitch in there, but that is not really required
- some platform were missing the setting of FTerminated to True, thus they'll now do that as well
git-svn-id: trunk@46543 -
2020-08-22 15:56:13 +00:00
michael
b7bd9f3325
* Add TerminatedSet (delphi compatibility, bug ID #37388 )
...
git-svn-id: trunk@45805 -
2020-07-18 22:35:36 +00:00
svenbarth
3c79a8dd81
* GetLoadErrorStr (currently) returns a ShortString, so avoid a useless conversion to AnsiString
...
git-svn-id: trunk@45329 -
2020-05-10 20:46:04 +00:00
svenbarth
73026618c8
* protect against empty strings inside the SetThreadDebugNameA and -U functions
...
git-svn-id: trunk@45237 -
2020-05-03 21:11:36 +00:00
yury
187cc46b32
* Windows: Do not use CommandLineToArgvW for parsing command line parameters, because it treats \" as an escape sequence for the double quote.
...
- Implemented parsing of the command line which is backward compatible.
- Do not use GetCommandLineA.
git-svn-id: trunk@45227 -
2020-05-02 18:19:26 +00:00
svenbarth
68d743a83e
* fix for Mantis #36941 : apply (adjusted) patch by Bi0T1N to implement SetThreadDebugNameA and -U for Windows, with the exception of Windows CE
...
git-svn-id: trunk@45206 -
2020-05-01 13:10:54 +00:00
svenbarth
c8b7094378
* fix for Mantis #36940 : apply (adjusted) patch by Bi0T1N to add functionality to the thread manager to set a thread's debug name (if supported by the platform)
...
git-svn-id: trunk@45160 -
2020-04-28 19:58:20 +00:00
svenbarth
e131a4e014
* nicely align assignment of TThreadManager.CloseThread
...
git-svn-id: trunk@45159 -
2020-04-28 19:57:55 +00:00
yury
8d95da3fea
* Windows: Reworked handling of command line arguments to properly support Unicode:
...
- Use the CommandLineToArgvW API function to parse the Unicode command line (we can use it since Win9x is not supported anymore).
- Implemented non-public functions ParamStrA and ParamStrU which are exposed in the objpas and uuchar units to provide correct AnsiString and UnicodeString versions of ParamStr().
- The cleanup code is moved from InternalExit to the finalization section of the System unit.
git-svn-id: trunk@45037 -
2020-04-23 12:38:42 +00:00
yury
7b425ed4a6
* Moved the common interface part of the win32 and win64 System units to the syswinh.inc include file.
...
git-svn-id: trunk@44996 -
2020-04-22 12:04:05 +00:00
svenbarth
1972b05cc8
* store and restore the 8087 control world only on x86 systems
...
git-svn-id: trunk@44922 -
2020-04-21 06:04:52 +00:00
marco
98b1d2b975
* use wingetprocaddress instead of getprocaddress in code under SUPPORT_WIN95.
...
getprocaddress is meanwhile a "manager", and is not yet initialized here.
git-svn-id: trunk@44777 -
2020-04-18 13:42:08 +00:00
marco
3c467f7cc5
* added some image_dllcharacteristics flags + removed some hard tabs.
...
git-svn-id: trunk@44724 -
2020-04-15 10:09:55 +00:00
marco
cf0bf230c5
* ifdef _win64 -> win64. Patch by Marcin. Possibly headers converted
...
when windows 64-bit existed, but without direct usage knowledge.
Should be in final 3.2.0
git-svn-id: trunk@44258 -
2020-03-03 11:04:54 +00:00
florian
3cd4168ab3
+ introduce TOSTimestamp
...
git-svn-id: trunk@44033 -
2020-01-25 14:14:41 +00:00
marco
a16f332fbb
* some quick fixes for Win32 with temp variables for some places where the int64 changes breaks.
...
git-svn-id: trunk@44017 -
2020-01-22 12:07:49 +00:00
florian
69956cd97a
* fix compilation on several OSes after r44010
...
git-svn-id: trunk@44013 -
2020-01-21 21:50:37 +00:00
florian
01302bc47d
* subroutines working with an OS dependend time stamp use an int64 now, so the 2038 problem
...
on unixes can be tackled
git-svn-id: trunk@44010 -
2020-01-21 20:59:20 +00:00
svenbarth
7a0a1d9f36
* fix for Mantis #36544 : provide an overall exception handler for the library startup code in case of unhandled exceptions (the loading of the library is considered failed in that case) when SEH is active
...
+ added test
git-svn-id: trunk@43901 -
2020-01-10 15:39:20 +00:00