reactos.git
19 years agodon't increment the lock count twice in RtlTryEnterCriticalSection() and added some...
Thomas Bluemel [Sat, 19 Feb 2005 13:44:56 +0000 (13:44 +0000)]
don't increment the lock count twice in RtlTryEnterCriticalSection() and added some more comments

svn path=/trunk/; revision=13642

19 years agofixed RtlEnterCriticalSection not to fail on wrong assumptions and added comment...
Thomas Bluemel [Sat, 19 Feb 2005 13:13:17 +0000 (13:13 +0000)]
fixed RtlEnterCriticalSection not to fail on wrong assumptions and added comment on why the debug message "Critical section not initialized (guess)" is wrong

svn path=/trunk/; revision=13641

19 years agodon't pass NULL handles to NtGdiCombineRgn
Thomas Bluemel [Sat, 19 Feb 2005 11:13:41 +0000 (11:13 +0000)]
don't pass NULL handles to NtGdiCombineRgn

svn path=/trunk/; revision=13640

19 years ago1. made the PEB structure match xp's layout
Thomas Bluemel [Sat, 19 Feb 2005 03:38:43 +0000 (03:38 +0000)]
1. made the PEB structure match xp's layout
2. fixed GetVersionEx()

svn path=/trunk/; revision=13639

19 years agoInclude svn revision in build string
Gé van Geldorp [Fri, 18 Feb 2005 22:46:49 +0000 (22:46 +0000)]
Include svn revision in build string

svn path=/trunk/; revision=13638

19 years agoRemove expat.dll from the list.
Filip Navara [Fri, 18 Feb 2005 21:20:01 +0000 (21:20 +0000)]
Remove expat.dll from the list.

svn path=/trunk/; revision=13637

19 years agoAdd shutdown message.
Gregor Anich [Fri, 18 Feb 2005 20:52:24 +0000 (20:52 +0000)]
Add shutdown message.

svn path=/trunk/; revision=13636

19 years agoProtect against bogus string offsets
Gé van Geldorp [Fri, 18 Feb 2005 20:19:49 +0000 (20:19 +0000)]
Protect against bogus string offsets

svn path=/trunk/; revision=13635

19 years agoFix KeUnstackDetachProcess.
Gregor Anich [Fri, 18 Feb 2005 18:28:49 +0000 (18:28 +0000)]
Fix KeUnstackDetachProcess.

svn path=/trunk/; revision=13634

19 years agoFix the detection of /3GB switch.
Filip Navara [Fri, 18 Feb 2005 17:15:01 +0000 (17:15 +0000)]
Fix the detection of /3GB switch.

svn path=/trunk/; revision=13633

19 years agodon't call win32k for GetObjectType() and query the information directly from the...
Thomas Bluemel [Fri, 18 Feb 2005 15:13:02 +0000 (15:13 +0000)]
don't call win32k for GetObjectType() and query the information directly from the shared handle table

svn path=/trunk/; revision=13632

19 years agoworkaround for buggy mingw include search order on linux (gvg)
Gunnar Dalsnes [Fri, 18 Feb 2005 13:53:21 +0000 (13:53 +0000)]
workaround for buggy mingw include search order on linux (gvg)

svn path=/trunk/; revision=13631

19 years agominor fix
Thomas Bluemel [Fri, 18 Feb 2005 13:07:27 +0000 (13:07 +0000)]
minor fix

svn path=/trunk/; revision=13630

19 years agoonly dump stack traces when GDI_DEBUG is enabled
Thomas Bluemel [Fri, 18 Feb 2005 12:59:30 +0000 (12:59 +0000)]
only dump stack traces when GDI_DEBUG is enabled

svn path=/trunk/; revision=13629

19 years agoimplemented reuse counters for gdi objects
Thomas Bluemel [Fri, 18 Feb 2005 12:54:17 +0000 (12:54 +0000)]
implemented reuse counters for gdi objects

svn path=/trunk/; revision=13628

19 years agoWe don't have separate .sym files anymore
Gé van Geldorp [Fri, 18 Feb 2005 09:17:56 +0000 (09:17 +0000)]
We don't have separate .sym files anymore

svn path=/trunk/; revision=13627

19 years agoremove duplicate typedef
Gunnar Dalsnes [Fri, 18 Feb 2005 02:41:49 +0000 (02:41 +0000)]
remove duplicate typedef

svn path=/trunk/; revision=13626

19 years agoremove duplicate typedef
Gunnar Dalsnes [Fri, 18 Feb 2005 02:28:16 +0000 (02:28 +0000)]
remove duplicate typedef

svn path=/trunk/; revision=13625

19 years ago1. implemented shared sections used for (shared) desktop heaps
Thomas Bluemel [Fri, 18 Feb 2005 01:57:32 +0000 (01:57 +0000)]
1. implemented shared sections used for (shared) desktop heaps
2. map the gdi handle table to userland

svn path=/trunk/; revision=13624

19 years ago1. object type names are stored in ntoskrnl's image (which is nonpaged memory), so...
Thomas Bluemel [Thu, 17 Feb 2005 16:41:28 +0000 (16:41 +0000)]
1. object type names are stored in ntoskrnl's image (which is nonpaged memory), so there's no need to allocate and copy them to new memory
2. fixed PsLookupThreadByThreadId() prototype
3. renamed the process list to PsActiveProcessHead and use fast mutexes to serialize access to it

svn path=/trunk/; revision=13623

19 years agodeclare NtTerminateThread()
Thomas Bluemel [Thu, 17 Feb 2005 15:11:36 +0000 (15:11 +0000)]
declare NtTerminateThread()

svn path=/trunk/; revision=13622

19 years agofixed includes
Thomas Bluemel [Thu, 17 Feb 2005 15:10:55 +0000 (15:10 +0000)]
fixed includes

svn path=/trunk/; revision=13621

19 years agoadd missing include
Gunnar Dalsnes [Thu, 17 Feb 2005 14:35:47 +0000 (14:35 +0000)]
add missing include

svn path=/trunk/; revision=13620

19 years ago_T should not be defined here
Gunnar Dalsnes [Thu, 17 Feb 2005 14:06:19 +0000 (14:06 +0000)]
_T should not be defined here

svn path=/trunk/; revision=13619

19 years agoBuild lsass.exe.
Eric Kohl [Thu, 17 Feb 2005 12:46:56 +0000 (12:46 +0000)]
Build lsass.exe.

svn path=/trunk/; revision=13618

19 years ago- Make lsass.exe a win32 application.
Eric Kohl [Thu, 17 Feb 2005 12:45:13 +0000 (12:45 +0000)]
- Make lsass.exe a win32 application.
- Load and initialize lsasrv.dll.

svn path=/trunk/; revision=13617

19 years agoforgot to change those two...
Gunnar Dalsnes [Thu, 17 Feb 2005 12:18:10 +0000 (12:18 +0000)]
forgot to change those two...

svn path=/trunk/; revision=13616

19 years agoadd workarounds for mingw runtime version differences
Gunnar Dalsnes [Thu, 17 Feb 2005 11:38:16 +0000 (11:38 +0000)]
add workarounds for mingw runtime version differences
gave directory routines a good cleanup (based on wine)
more tcharizing of routines

svn path=/trunk/; revision=13615

19 years agofix typo
Gunnar Dalsnes [Thu, 17 Feb 2005 10:44:57 +0000 (10:44 +0000)]
fix typo

svn path=/trunk/; revision=13614

19 years agoremove more cruft
Gunnar Dalsnes [Thu, 17 Feb 2005 00:01:54 +0000 (00:01 +0000)]
remove more cruft

svn path=/trunk/; revision=13613

19 years agoInterpret numeric values as being hexadecimal values if they contain hex digits a-f
Casper Hornstrup [Wed, 16 Feb 2005 23:17:17 +0000 (23:17 +0000)]
Interpret numeric values as being hexadecimal values if they contain hex digits a-f

svn path=/trunk/; revision=13612

19 years agohack into private crt headers
Gunnar Dalsnes [Wed, 16 Feb 2005 23:08:04 +0000 (23:08 +0000)]
hack into private crt headers

svn path=/trunk/; revision=13611

19 years agoSupport private messages
Casper Hornstrup [Wed, 16 Feb 2005 22:38:49 +0000 (22:38 +0000)]
Support private messages

svn path=/trunk/; revision=13610

19 years agontdll:
Gunnar Dalsnes [Wed, 16 Feb 2005 22:30:50 +0000 (22:30 +0000)]
ntdll:
-critical.c: catch (more) invalid use
-impl. sscanf (stolen from wine)
crt:
-use native mingw headers and not private copies of them
-converted some routines to using tchar == impl. many missing unicode routines
-impl. sscanf and friends correctly (stolen from wine)
tchar.h:
-added lotsa missin stuff

svn path=/trunk/; revision=13609

19 years agontdll:
Gunnar Dalsnes [Wed, 16 Feb 2005 22:29:48 +0000 (22:29 +0000)]
ntdll:
-critical.c: catch (more) invalid use
-impl. sscanf (stolen from wine)
crt:
-use native mingw headers and not private copies of them
-converted some routines to using tchar == impl. many missing unicode routines
-impl. sscanf and friends correctly (stolen from wine)
tchar.h:
-added lotsa missin stuff

svn path=/trunk/; revision=13608

19 years agontdll:
Gunnar Dalsnes [Wed, 16 Feb 2005 22:29:16 +0000 (22:29 +0000)]
ntdll:
-critical.c: catch (more) invalid use
-impl. sscanf (stolen from wine)
crt:
-use native mingw headers and not private copies of them
-converted some routines to using tchar == impl. many missing unicode routines
-impl. sscanf and friends correctly (stolen from wine)
tchar.h:
-added lotsa missin stuff

svn path=/trunk/; revision=13607

19 years agocrt:
Gunnar Dalsnes [Wed, 16 Feb 2005 22:22:42 +0000 (22:22 +0000)]
crt:
-use native mingw headers and not private copies of them
tchar.h:
-added lotsa missin stuff

svn path=/trunk/; revision=13606

19 years agoAdd lsasrv.dll stub.
Eric Kohl [Wed, 16 Feb 2005 21:59:00 +0000 (21:59 +0000)]
Add lsasrv.dll stub.

svn path=/trunk/; revision=13605

19 years agoSupport multiple channels
Casper Hornstrup [Wed, 16 Feb 2005 21:07:55 +0000 (21:07 +0000)]
Support multiple channels

svn path=/trunk/; revision=13604

19 years agoCast pointers to ULONG_PTR instead of ULONG.
Filip Navara [Wed, 16 Feb 2005 18:21:21 +0000 (18:21 +0000)]
Cast pointers to ULONG_PTR instead of ULONG.

svn path=/trunk/; revision=13603

19 years agoFix email address.
Filip Navara [Wed, 16 Feb 2005 18:19:54 +0000 (18:19 +0000)]
Fix email address.

svn path=/trunk/; revision=13602

19 years agoFix a typo.
Filip Navara [Wed, 16 Feb 2005 18:12:15 +0000 (18:12 +0000)]
Fix a typo.

svn path=/trunk/; revision=13601

19 years agoFix definition of MIDL_SERVER_INFO structure.
Filip Navara [Wed, 16 Feb 2005 18:10:12 +0000 (18:10 +0000)]
Fix definition of MIDL_SERVER_INFO structure.

svn path=/trunk/; revision=13600

19 years agoMinor formatting change.
Filip Navara [Wed, 16 Feb 2005 18:02:50 +0000 (18:02 +0000)]
Minor formatting change.

svn path=/trunk/; revision=13599

19 years agoFix compilation with -O3 and fix bugs 484 and 505. win32k patches by Tinus.
Art Yerkes [Wed, 16 Feb 2005 16:52:51 +0000 (16:52 +0000)]
Fix compilation with -O3 and fix bugs 484 and 505. win32k patches by Tinus.

svn path=/trunk/; revision=13598

19 years agoget rid of libunicode
Thomas Bluemel [Wed, 16 Feb 2005 16:45:51 +0000 (16:45 +0000)]
get rid of libunicode

svn path=/trunk/; revision=13597

19 years agoForward to user32 when appropriate in shlwapi and removed dependencies to libunicode
Thomas Bluemel [Wed, 16 Feb 2005 16:44:54 +0000 (16:44 +0000)]
Forward to user32 when appropriate in shlwapi and removed dependencies to libunicode

svn path=/trunk/; revision=13596

19 years ago- Implement CaptureStringArg and CaptureAndConvertAnsiArg.
Eric Kohl [Wed, 16 Feb 2005 15:44:34 +0000 (15:44 +0000)]
- Implement CaptureStringArg and CaptureAndConvertAnsiArg.
- FileExists: Restore error mode.
- Move configuration manager functions to a separate file.
- Add cfgmgr32.h.

svn path=/trunk/; revision=13595

19 years agoFile system drivers should forward the IRP_MJ_SHUTDOWN request to underlying storage...
Filip Navara [Wed, 16 Feb 2005 15:27:30 +0000 (15:27 +0000)]
File system drivers should forward the IRP_MJ_SHUTDOWN request to underlying storage drivers. Fixes bug #504.

svn path=/trunk/; revision=13594

19 years agoconverted libexpat to a static library
Thomas Bluemel [Wed, 16 Feb 2005 14:01:34 +0000 (14:01 +0000)]
converted libexpat to a static library

svn path=/trunk/; revision=13593

19 years agoAdd EOL to make gcc shutup.
Steven Edwards [Wed, 16 Feb 2005 03:17:36 +0000 (03:17 +0000)]
Add EOL to make gcc shutup.

svn path=/trunk/; revision=13592

19 years agoUpdate and sync Msiexec with Wine Cvs.
James Tabor [Wed, 16 Feb 2005 00:24:12 +0000 (00:24 +0000)]
Update and sync Msiexec with Wine Cvs.

svn path=/trunk/; revision=13591

19 years agoFix inline assembler register specification (http://gcc.gnu.org/bugzilla/show_bug...
Filip Navara [Tue, 15 Feb 2005 19:43:17 +0000 (19:43 +0000)]
Fix inline assembler register specification (gcc.gnu.org/bugzilla/show_bug.cgi?id=10153).

svn path=/trunk/; revision=13587

19 years agoUse bitwise operators for ROUND_UP/DOWN and rename them
Gé van Geldorp [Tue, 15 Feb 2005 19:26:13 +0000 (19:26 +0000)]
Use bitwise operators for ROUND_UP/DOWN and rename them
to ROUND_UP_POW2/ROUND_DOWN_POW2

svn path=/trunk/; revision=13585

19 years agoFix ROUND_UP when N is a multiple of S. Proposed by unC0Rr.
Gé van Geldorp [Tue, 15 Feb 2005 17:25:01 +0000 (17:25 +0000)]
Fix ROUND_UP when N is a multiple of S. Proposed by unC0Rr.

svn path=/trunk/; revision=13584

19 years agosecured buffer access in NtCreateSection(), NtOpenSection(), NtMapViewOfSection(...
Thomas Bluemel [Tue, 15 Feb 2005 15:46:22 +0000 (15:46 +0000)]
secured buffer access in NtCreateSection(), NtOpenSection(), NtMapViewOfSection(), NtQuerySection() and NtExtendSection()

svn path=/trunk/; revision=13583

19 years agodon't leak the captured file name in NtCreatePagingFile() when probing the other...
Thomas Bluemel [Tue, 15 Feb 2005 14:37:53 +0000 (14:37 +0000)]
don't leak the captured file name in NtCreatePagingFile() when probing the other parameters failed

svn path=/trunk/; revision=13582

19 years agodistinguish kmode and umode alertability
Thomas Bluemel [Tue, 15 Feb 2005 13:40:10 +0000 (13:40 +0000)]
distinguish kmode and umode alertability

svn path=/trunk/; revision=13581

19 years agoNtQueueApcThread always inserts a umode apc
Thomas Bluemel [Tue, 15 Feb 2005 11:46:31 +0000 (11:46 +0000)]
NtQueueApcThread always inserts a umode apc

svn path=/trunk/; revision=13580

19 years agosecured access to buffers in NtWaitForSingleObject(), NtWaitForMultipleObjects()...
Thomas Bluemel [Mon, 14 Feb 2005 22:50:15 +0000 (22:50 +0000)]
secured access to buffers in NtWaitForSingleObject(), NtWaitForMultipleObjects() and NtSignalAndWaitForSingleObject()

svn path=/trunk/; revision=13579

19 years agofixed the NtRaiseHardError() prototype
Thomas Bluemel [Mon, 14 Feb 2005 21:41:49 +0000 (21:41 +0000)]
fixed the NtRaiseHardError() prototype

svn path=/trunk/; revision=13578

19 years agoFix broken DEVICE_NO_FLUSH handling for ATAPI devices, with augmentation to check...
Mike Nordell [Mon, 14 Feb 2005 21:07:25 +0000 (21:07 +0000)]
Fix broken DEVICE_NO_FLUSH handling for ATAPI devices, with augmentation to check the SupportedFeatures83 of the device. Thanks to tinus_ for finding and fixing.

svn path=/trunk/; revision=13577

19 years ago1. a few previous mode fixes
Thomas Bluemel [Mon, 14 Feb 2005 21:00:05 +0000 (21:00 +0000)]
1. a few previous mode fixes
2. implemented NtSetDefaultHardErrorPort() with help of pseudo code from windowsitlibrary.com

svn path=/trunk/; revision=13576

19 years agoSync to Wine-20050211
Gé van Geldorp [Mon, 14 Feb 2005 18:39:15 +0000 (18:39 +0000)]
Sync to Wine-20050211

svn path=/trunk/; revision=13573

19 years agoDelete old version in preparation of vendor drop
Gé van Geldorp [Mon, 14 Feb 2005 18:36:46 +0000 (18:36 +0000)]
Delete old version in preparation of vendor drop

svn path=/trunk/; revision=13572

19 years agoExport splay-tree and generic table functions.
Eric Kohl [Mon, 14 Feb 2005 17:10:20 +0000 (17:10 +0000)]
Export splay-tree and generic table functions.

svn path=/trunk/; revision=13569

19 years agodon't walk all the timers as they're sorted.
Thomas Bluemel [Mon, 14 Feb 2005 17:03:16 +0000 (17:03 +0000)]
don't walk all the timers as they're sorted.

svn path=/trunk/; revision=13568

19 years agofixed typo and don't use memcpy to just copy a 32bit variable...
Thomas Bluemel [Mon, 14 Feb 2005 16:49:36 +0000 (16:49 +0000)]
fixed typo and don't use memcpy to just copy a 32bit variable...

svn path=/trunk/; revision=13567

19 years agodon't remove the timer from the list before walking to the next timer. also handle...
Thomas Bluemel [Mon, 14 Feb 2005 16:41:53 +0000 (16:41 +0000)]
don't remove the timer from the list before walking to the next timer. also handle over-due timers in KeSetTimerEx(). This should make the system bootable again.

svn path=/trunk/; revision=13566

19 years agoSync to Wine-20050211
Gé van Geldorp [Mon, 14 Feb 2005 15:55:32 +0000 (15:55 +0000)]
Sync to Wine-20050211
Oleh R. Nykyforchyn <nick@pu.if.ua>
- Ukrainian codepage 21866 added and respective files corrected. Two
  keyboard layouts (for Ukrainian and Russian) added.

svn path=/trunk/; revision=13562

19 years agoSync to Wine-20050211
Gé van Geldorp [Mon, 14 Feb 2005 15:04:09 +0000 (15:04 +0000)]
Sync to Wine-20050211
James Hawkins <truiken@gmail.com>
- Properly implement DllCanUnloadNow ref counting.
- Use only stored result of Interlocked* in AddRef/Release.
- Expand TRACEs to display the ref count.

svn path=/trunk/; revision=13561

19 years agoSync to Wine-20050211
Gé van Geldorp [Mon, 14 Feb 2005 14:55:38 +0000 (14:55 +0000)]
Sync to Wine-20050211
James Hawkins <truiken@gmail.com>
- use only stored result of Interlocked* in AddRef/Release
- expand TRACEs to display the ref count
Hans Leidekker <hans@it.vu.nl>
- Stub implementations for PathUnExpandEnvStringsSHRegEnumUSValue{A,W},
  SHRegCreateUSKey{A,W}, SHRegDeleteEmptyUSKey{A,W},
  SHRegDeleteUSValue{A,W}, SHRegEnumUSValue{A,W}.
- Implement and test PathIsValidChar{A,W}.
Paul Vriens <Paul.Vriens@xs4all.nl>
- Change the order of Src and Dst in CopyKey calls/functions.

svn path=/trunk/; revision=13560

19 years agoSync to Wine-20050211
Gé van Geldorp [Mon, 14 Feb 2005 14:50:45 +0000 (14:50 +0000)]
Sync to Wine-20050211
James Hawkins <truiken@gmail.com>
- use only stored result of Interlocked* in AddRef/Release
- expand TRACEs to display the ref count
Hans Leidekker <hans@it.vu.nl>
- Stub implementations for PathUnExpandEnvStringsSHRegEnumUSValue{A,W},
  SHRegCreateUSKey{A,W}, SHRegDeleteEmptyUSKey{A,W},
  SHRegDeleteUSValue{A,W}, SHRegEnumUSValue{A,W}.
- Implement and test PathIsValidChar{A,W}.
Paul Vriens <Paul.Vriens@xs4all.nl>
- Change the order of Src and Dst in CopyKey calls/functions.

svn path=/trunk/; revision=13559

19 years ago- Implement RtlSetAttributesSecurityDescriptor, RtlInitializeGenericTableAvl, RtlNumb...
Eric Kohl [Mon, 14 Feb 2005 14:36:03 +0000 (14:36 +0000)]
- Implement RtlSetAttributesSecurityDescriptor, RtlInitializeGenericTableAvl, RtlNumberGenericTableElements and RtlNumberGenericTableElementsAvl.

svn path=/trunk/; revision=13558

19 years agofixed some warnings
Thomas Bluemel [Mon, 14 Feb 2005 11:57:51 +0000 (11:57 +0000)]
fixed some warnings

svn path=/trunk/; revision=13557

19 years agodon't leak a reference to the timer object when copying to the buffer failed in NtQue...
Thomas Bluemel [Mon, 14 Feb 2005 11:46:17 +0000 (11:46 +0000)]
don't leak a reference to the timer object when copying to the buffer failed in NtQueryTimer() and don't use uninitialized variable in NtSetTimer()

svn path=/trunk/; revision=13556

19 years agonetzimme@netscape.net
Gé van Geldorp [Mon, 14 Feb 2005 07:46:14 +0000 (07:46 +0000)]
netzimme@netscape.net
Make RTL8029 work with NE2000 driver

svn path=/trunk/; revision=13555

19 years agoReimplemented Kernel and Executive Timers. Use Microsoft documented structures, added...
Alex Ionescu [Mon, 14 Feb 2005 05:36:04 +0000 (05:36 +0000)]
Reimplemented Kernel and Executive Timers. Use Microsoft documented structures, added locks to protect against race conditions, use dispatcher database, implement new features like wake timers, use thread timer lists, simplify timer list, add more comments and debug info, actually add apc/dpc functions which do what the should do, fix a couple of bugs, simplfiy absolute vs relative timers. I will do more testing and see wether an experimental Timer Tree patch (which greatly speeds up timer processing) is necessary.

svn path=/trunk/; revision=13554

19 years agoprobe pointers in NtCreateToken. Still needs some work as access to the buffers needs...
Thomas Bluemel [Mon, 14 Feb 2005 00:32:09 +0000 (00:32 +0000)]
probe pointers in NtCreateToken. Still needs some work as access to the buffers needs to be secured

svn path=/trunk/; revision=13553

19 years agosecure access to buffers in NtAllocateLocallyUniqueId
Thomas Bluemel [Mon, 14 Feb 2005 00:28:12 +0000 (00:28 +0000)]
secure access to buffers in NtAllocateLocallyUniqueId

svn path=/trunk/; revision=13552

19 years agoSync to Wine-20050211
Gé van Geldorp [Sun, 13 Feb 2005 23:10:36 +0000 (23:10 +0000)]
Sync to Wine-20050211
James Hawkins <truiken@gmail.com>
- Properly implement DllCanUnloadNow ref counting. Make sure the mozilla
  control is ready to unload as well.
- Use Interlocked* instead of ++/-- in AddRef/Release.
- Use only stored result of Interlocked* in AddRef/Release.
- Expand TRACEs to display the ref count.
Mike McCormack <mike@codeweavers.com>
- Stub definition for OpenUrl.

svn path=/trunk/; revision=13551

19 years agoResource script uses the new generic rc script.
Emanuele Aliberti [Sun, 13 Feb 2005 23:03:17 +0000 (23:03 +0000)]
Resource script uses the new generic rc script.

svn path=/trunk/; revision=13550

19 years agodon't return value of uninitialized variable
Thomas Bluemel [Sun, 13 Feb 2005 23:01:33 +0000 (23:01 +0000)]
don't return value of uninitialized variable

svn path=/trunk/; revision=13549

19 years agodon't return value of uninitialized variable
Thomas Bluemel [Sun, 13 Feb 2005 22:56:12 +0000 (22:56 +0000)]
don't return value of uninitialized variable

svn path=/trunk/; revision=13548

19 years agoSM - some more work
Emanuele Aliberti [Sun, 13 Feb 2005 22:55:28 +0000 (22:55 +0000)]
SM - some more work

svn path=/trunk/; revision=13547

19 years agoSync to Wine-20050211
Gé van Geldorp [Sun, 13 Feb 2005 22:42:47 +0000 (22:42 +0000)]
Sync to Wine-20050211
James Hawkins <truiken@gmail.com>
- Use Interlocked* instead of ++/-- in AddRef/Release.
- Use only stored result of Interlocked* in AddRef/Release.
- Expand TRACEs to display the ref count.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Mike McCormack <mike@codeweavers.com>
- Implement GetAdvise and SetAdvise.
Henning Gerhardt <henning.gerhardt@web.de>
- A small spelling fix and a small update (thank to Andreas Mohr).
- Update German resources.
Joris Huizer <jorishuizer@planet.nl>
- add file_operation_delete
- add file_operation_checkFlags
- use these in SHFileOperationW replacing inline code

svn path=/trunk/; revision=13544

19 years agofixed wrong buffer check in NtDuplicateToken and added buffer checks in NtOpenThreadT...
Thomas Bluemel [Sun, 13 Feb 2005 22:00:36 +0000 (22:00 +0000)]
fixed wrong buffer check in NtDuplicateToken and added buffer checks in NtOpenThreadTokenEx

svn path=/trunk/; revision=13541

19 years ago- Silence a debug message.
Hartmut Birr [Sun, 13 Feb 2005 21:32:50 +0000 (21:32 +0000)]
- Silence a debug message.

svn path=/trunk/; revision=13540

19 years agoLPC message type LPC_CONNECTION_REFUSED does not exist in NT.
Emanuele Aliberti [Sun, 13 Feb 2005 21:32:41 +0000 (21:32 +0000)]
LPC message type LPC_CONNECTION_REFUSED does not exist in NT.

svn path=/trunk/; revision=13539

19 years agoNtAcceptConnectPort signature fixed.
Emanuele Aliberti [Sun, 13 Feb 2005 21:31:34 +0000 (21:31 +0000)]
NtAcceptConnectPort signature fixed.

svn path=/trunk/; revision=13538

19 years agoFix OriginalCopyright.
Emanuele Aliberti [Sun, 13 Feb 2005 21:18:37 +0000 (21:18 +0000)]
Fix OriginalCopyright.

svn path=/trunk/; revision=13537

19 years agoOriginalCopyright added.
Emanuele Aliberti [Sun, 13 Feb 2005 21:17:34 +0000 (21:17 +0000)]
OriginalCopyright added.

svn path=/trunk/; revision=13536

19 years agoResource script added.
Emanuele Aliberti [Sun, 13 Feb 2005 21:16:59 +0000 (21:16 +0000)]
Resource script added.

svn path=/trunk/; revision=13535

19 years agoSync to Wine-20050211
Gé van Geldorp [Sun, 13 Feb 2005 21:06:18 +0000 (21:06 +0000)]
Sync to Wine-20050211
Jonathan Ernst <Jonathan@ErnstFamily.ch>
- Updated French resources.

svn path=/trunk/; revision=13534

19 years agoSync to Wine-20050211
Gé van Geldorp [Sun, 13 Feb 2005 21:03:37 +0000 (21:03 +0000)]
Sync to Wine-20050211
James Hawkins <truiken@gmail.com>
- Use Interlocked* instead of ++/-- in AddRef/Release.
- Use only stored result of Interlocked* in AddRef/Release.
- Expand TRACEs to display the ref count.
Alex Villacis Lasso <a_villacis@palosanto.com>
- Initialize temporary variants before calling VariantChangeTypeEx.
- When parsing an hex/oct integer value, copy value verbatim in VARIANT,
  rather than a negated value. Add test case for this behavior.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Remove message telling users to copy native stdole32.tlb over as we
  now provide it.
- Better trace in LoadTypeLib.
- Change debug messages type to reflect we provide stdole32.tlb.
Robert Shearman <rob@codeweavers.com>
- Move OLE automation interface registration to oleaut32.
- Add IRemUnknown to list of interfaces to register.
Mike Hearn <mh@codeweavers.com>
- Change some FIXMEs to ERRs to reflect the fact that nothing needs
  fixing.
- Fix some memory leaks on error paths in _marshal_interface.
- Fix a typo, propagate errors better from inside the typelib
  marshaller.
- Return OLE automation build value as win2k by default.
Rein Klazes <wijn@wanadoo.nl>
- SafeArrayDestroy() returns success when called with a NULL
  pointer. Added to the test cases.
Paul Vriens <Paul.Vriens@xs4all.nl>
- Add WinXP to OaBuildVersion.

svn path=/trunk/; revision=13533

19 years agoSync to Wine-20050211
Gé van Geldorp [Sun, 13 Feb 2005 20:52:16 +0000 (20:52 +0000)]
Sync to Wine-20050211
Robert Shearman <rob@codeweavers.com>
- Add documentation for most Co* functions.
- Move several functions into different files to group them with
  similar functions.
- Implement CoDisconnectObject.
- Change CoLockObjectExternal so that it does the correct action now
  and eliminate a fair few lines of now redundant code.
- Rename OLE32_Dll{Register,Unregister}Server to
  Dll{Register,Unregister}Server.
- Move OLE automation interface registration to oleaut32.
- Add IRemUnknown to list of interfaces to register.
- Make proxy manager use IMultiQI instead of IInternalUnknown as tests
  show that IInternalUnknown isn't exposed.
- Implement IMultiQI on top of IRemUnknown calls.
- Silence some fixmes that occur during tests and don't give us any
  useful information.
- Fix typo in class factory proxy that caused us to use the wrong
  offset into the CFProxy structure, causing us to not call the
  outer_unknown properly.
- Use InterlockedIncrement for the ipid counter instead of a critical
  section (suggested by Mike Hearn).
- Remove a line added by a bad merge.
- Implement RemUnkStub_Disconnect.
- Remove all of the RPC disconnect code.
- Implement IRemUnknown.
- Use IRemUnknown for life-cycle management instead of the current
  hacks.
- Generate machine-local IPIDs.
- Make pipes be uniquely identified only by their IPID.
- Implement table marshaling.
- The apartment reference should be held while the stub manager
  reference is held.
- Fix same apartment-unmarshal detection.
- Proxies/stubs for IRemUnknown methods, based on code written by Ove
  Ksven.
- Initialize ppv pointer in ClientIdentity_QueryInterface to NULL as
  apps depend on this.
- Don't release IRpcProxyBuffer on ifproxy destruction - the caller
  will do this for us.
- Make find_proxy_manager add a reference to the proxy manager and
  make proxy_manager_construct return an object with a valid
  ref-count.
- Remove stray not operator to fix a memory leak / crash in
  proxy_manager_destroy.
- More debug messages, especially on errors.
- Fix ref-count leak in the Class Factory proxy.
- Add a test case for IClassFactory_CreateInstance.
- Split up apartment creation so that the long code paths that don't
  need locking no longer have locking.
- Add special cases for the threads that join apartments but can't
  increase the refcount of the apartment.
- Free TLS storage on thread destruction (including releasing the
  apartment the thread is in, if any, and so making another test
  pass).
- More tests.
- Change return code of CoGetPSClsid to match test result.
- Do a slight hack to make IRemUnknown proxies be added after the
  proxy that uses them to stop them being used after they are
  destroyed.
- Fix multiple local server connections.
- The apartment reference should be held while the stub manager
  reference is held.
- Fix same apartment-unmarshal detection.
- Don't use the pipe caching code because it doesn't work correctly at
  the moment.
- Always write disconnect reply packet, even in failure cases.
- Move object-to-stub-manager mapping rule to register_ifstub.
- Pass the original IID to IMarshal_UnmarshalInterface and query for
  the requested interface.
- Unmarshaling IID_NULL means use the IID the interface was originally
  marshaled with.
- Add code for destroying the thread-local storage data, but don't use
  it yet.
- Don't release apartment on changing modes because we didn't add a
  reference anywhere.
- Quieten the RPC_E_DISCONNECTED error message as it is an expected
  return code.
- Treat IID_NULL the same as IID_IUnknown.
- Make tests compile on Win95 again.
- Fix copy+paste error where the test failure should be from the
  CoUnmarshalInterface function.
- Give IUnknown its own ifstub to fix ref-counting and ipid storage
  issues.
- Add a new flag SORFP_NOLIFETIMEMGMT to tell the proxy manager not to
  call any IRemUnknown functions.
- Move the low-level unmarshaling code into a new function,
  unmarshal_object, so that it can be easily reused for unmarshaling
  IRemUnknown.
- Consolidate more stub creation details into register_ifstub.
- Replace the current wine_marshal_id structure with STDOBJREF for the
  on-the-wire format.
- Initialize clsid member to the marshaler clsid to fix custom
  marshaling.
- Make proxy shutdown test succeed by releasing the channel on
  disconnect.
- Remove wine_marshal_data: it is unneeded and there is no equivalent in
  STDOBJREF.
- Remove obsolete structs, rearrange things to group the structs
  together and to group similar functions.
- Document thread-safety of members of structs.
- Document CoSetState & CoGetState.
- Rewrite them to only retrieve TLS info once.
- Remove trailing whitespace in COM_CurrentInfo.
- Release the client security objects when no longer needed (reported by
  Mike McCormack).
- Implement CoSetProxyBlanket, CoQueryProxyBlanket and CoCopyProxy.
- Update todo list.
- Destroy stubs on apartment shutdown.
- Make MTA dynamically allocated so that proxies and other resources
  are freed at the proper time.
- Changed/removed some incorrect comments regarding apartments.
Mike Hearn <mh@codeweavers.com>
- Various formatting/style changes.
- Force context switch on chanbuf disconnect to avoid a race in the test
  suite.
Mike Hearn <mh@codeweavers.com>
Robert Shearman <rob@codeweavers.com>
- Rework RPC dispatch layer to be simpler and not get confused by
  server/client duality.
- Make threads shut down at the right time and not access freed memory
  after apartment destruction.
- Rename stub_dispatch_thread to client_dispatch_thread.
- Add some more tracing
- Check return value of WaitNamedPipe.
- Change named pipe timeouts to 0.5s, which should be enough for even the
  slowest machines.
Christian Costa <titan.costa@wanadoo.fr>
- CoInitialize(Ex) should return S_FALSE when COM is already initialized
  for the current thread.

svn path=/trunk/; revision=13532

19 years ago- Forgot this file.
Hartmut Birr [Sun, 13 Feb 2005 17:25:52 +0000 (17:25 +0000)]
- Forgot this file.
- Prepared cdfs for using CcInitializeCacheMap/CcUninitializeCacheMap instead of CcRosInitializeFileCache/CcRosReleaseFileCache.

svn path=/trunk/; revision=13531

19 years ago- Prepared ntfs for using CcInitializeCacheMap/CcUninitializeCacheMap instead of...
Hartmut Birr [Sun, 13 Feb 2005 17:23:41 +0000 (17:23 +0000)]
- Prepared ntfs for using CcInitializeCacheMap/CcUninitializeCacheMap instead of CcRosInitializeFileCache/CcRosReleaseFileCache.

svn path=/trunk/; revision=13530

19 years ago- Prepared cdfs for using CcInitializeCacheMap/CcUninitializeCacheMap instead of...
Hartmut Birr [Sun, 13 Feb 2005 17:21:16 +0000 (17:21 +0000)]
- Prepared cdfs for using CcInitializeCacheMap/CcUninitializeCacheMap instead of CcRosInitializeFileCache/CcRosReleaseFileCache.

svn path=/trunk/; revision=13529

19 years ago- Partial implementation of IoSetInformation.
Hartmut Birr [Sun, 13 Feb 2005 17:10:59 +0000 (17:10 +0000)]
- Partial implementation of IoSetInformation.

svn path=/trunk/; revision=13528