Commit graph

46099 commits

Author SHA1 Message Date
Pierre Schweitzer bd3cef98c1 [KERNEL32]
- Get rid of Wine's implementation of GetTempFileNameA/W and reimplement them in the Windows 2003 way.
This fixes bug #5481

svn path=/trunk/; revision=50839
2011-02-20 19:49:02 +00:00
Pierre Schweitzer 6b74e9a992 [KERNEL32]
- Get rid of old function Basep8BitStringToLiveUnicodeString() that doesn't exist under Windows, and that was even unused
- Rename Basep8BitStringToHeapUnicodeString() to Basep8BitStringToDynamicUnicodeString() and fix its implementation (and all the calls)
- Define BasepUnicodeStringTo8BitString()

svn path=/trunk/; revision=50838
2011-02-20 19:40:15 +00:00
Pierre Schweitzer cbfa1e3dbb [KERNEL32]
Properly implement GetLastError and export it.

svn path=/trunk/; revision=50837
2011-02-20 19:33:45 +00:00
Pierre Schweitzer 35587944a0 [RTL]
- Fixed RtlMultiByteToUnicodeN & RtlAnsiCharToUnicodeChar prototype
- Added missing paged code marker to RtlAnsiCharToUnicodeChar
- Added a small hack to RtlAnsiCharToUnicodeChar. Indeed, when it's called during second stage, it's failing due to missing NLS table.
Probably usetup that doesn't define a registry entry. And then, FreeLdr just passes null pointer.

svn path=/trunk/; revision=50836
2011-02-20 19:28:34 +00:00
Pierre Schweitzer 43a5ab1712 [WIN32CSR]
Add a new API GetTempFile() that returns an identifier to be used for creating temporary files.
This API should be in basesrv.dll

svn path=/trunk/; revision=50835
2011-02-20 19:23:46 +00:00
Johannes Anderwald f59aa17010 [USETUP]
- Get rid of indirection
See issue #5190 for more details.

svn path=/trunk/; revision=50834
2011-02-20 16:50:38 +00:00
Johannes Anderwald 759dd145d1 - Add french translation for runonce utility
- Add svn:eol-style native property
- Fix language id (SUBLANG_DEFAULT -> SUBLANG_NEUTRAL)
See issue #5918 for more details.

svn path=/trunk/; revision=50833
2011-02-20 16:32:21 +00:00
Timo Kreuzer 6e366de8b6 [KERNEL32]
64 bit compatibility fix for IsWow64Process. Patch by Thomas Faber <thfabba at gmx dot de>

svn path=/trunk/; revision=50832
2011-02-20 12:07:28 +00:00
Timo Kreuzer 6da719aa66 [NTOSKRNL]
Halfplement (win32 only) ProcessWow64Information case in NtQueryInformationProcess. Patch by Samuel Serapion.

See issue #5916 for more details.

svn path=/trunk/; revision=50831
2011-02-20 11:27:07 +00:00
Timo Kreuzer c5e43261f2 [CHARMAP]
Patch by Carlo Bramini (carlo bramix at libero dot it)
- Make the text copy field a richedit control.
- Use WM_CHAR to copy the characters
- Fix definition of MSFTEDIT_CLASS for the resource compiler

See issue #5275 for more details.

svn path=/trunk/; revision=50830
2011-02-20 10:55:48 +00:00
Eric Kohl f411e07b42 [SETUPAPI]
Implement CM_Get_Hardware_Profile_Info[_Ex]A/W.

svn path=/trunk/; revision=50829
2011-02-20 10:44:30 +00:00
Aleksey Bragin 37ab9f5320 [RTL/DPH]
- Fix a bug with node count in RtlpDphAddNewPool().
- Unprotect needed amount of memory in RtlpDphSetProtectionBeforeUse() instead of always assuming PAGE_SIZE.
- Fix an incorrect virtual block pointer calculation in RtlpPageHeapAllocate(). 
- Silence RtlpDphShouldAllocateInPageHeap() debug print.
- Add helpful debug prints (disabled by default).
- Some code cleanup for better readibility.
- Heap create, destroy and allocating a block from the heap work now.

svn path=/trunk/; revision=50828
2011-02-20 09:54:01 +00:00
Timo Kreuzer ebc9df1a25 [WIN32K]
NtGdiSelectBitmap. Don't exclusively lock the old bitmap. This could cause pool corruptions, when the share count reachted 0, the object was deleted and unlocked after that. Use InterlockedCompareExchange to check and exchange the new bitmaps dc. This is commented out, because it causes a lot of drawing problems. Do the referencing manually instead of calling DC_vSelectSurface. Use a shared reference instead of an exclusive lock for the new bitmap. add code for proper handling of DEFAULT_BITMAP, currently hacked due to restrictions in other parts of win32k. Fixes bug 5498 and probably a lot of other problems.

svn path=/trunk/; revision=50827
2011-02-19 23:44:36 +00:00
Timo Kreuzer 3e75942b10 [WIN32K]
NtGdiStretchDIBitsInternal: don't call NtGdiGetDCObject and NtGdiCreateCompatibleDC with a dc locked. These cases are not harmful, but generally Nt* and Gre* should never be called with an exclusive gdi lock held. Also don't return in failure case with the dc still locked.

svn path=/trunk/; revision=50826
2011-02-19 22:29:31 +00:00
Timo Kreuzer ebf22c9469 [WIN32K]
- add tracing of exclusive gdi locks
- add some asserts

svn path=/trunk/; revision=50825
2011-02-19 22:03:34 +00:00
Timo Kreuzer dc29559c25 [WIN32K]
- Add ros specific member cExclusiveLocks to THREADINFO to track number of acquired locks
- Add functions/macros to check lock count
- Move some definitions into gdidebug.h for global use
- Fix broken GdiDbgHTIntegrityCheck
- Add pre and post syscall hook functions (unused yet)

svn path=/trunk/; revision=50824
2011-02-19 21:56:43 +00:00
Timo Kreuzer ea5522e1d8 [NTOSKRNL]
Add support for debug pre/post syscall hooks, that can be registered from win32k. They only exist on DBG versions.

svn path=/trunk/; revision=50823
2011-02-19 21:50:11 +00:00
Amine Khaldi 7d2277a1ea [EVENTVWR]
- Fix handling of NULL lpComputerName.
- Handle lpData conversion to a wide string and make sure it's NULL terminated.
- Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>
See issue #5926 for more details.

svn path=/trunk/; revision=50822
2011-02-19 21:24:47 +00:00
Sylvain Petreolle 3eb47ac17d [NTOSKRNL]
Fix typo.

svn path=/trunk/; revision=50821
2011-02-19 18:43:54 +00:00
Eric Kohl d0515abbea [SETUPAPI]
- Implement CM_Get_Device_Interface_AliasA, CM_Get_Device_Interface_AliasW and 
CM_Get_Device_Interface_Alias_ExW.
- Add a stub for CM_Get_Device_Interface_Alias_ExA.
- Implement the obsolete functions CM_Query_Remove_SubTree[_Ex] and CM_Remove_SubTree[_Ex].

svn path=/trunk/; revision=50820
2011-02-19 18:28:13 +00:00
Johannes Anderwald 634966f644 - Revert 49767 on Pierre's request, which reverted this:
- Added real implementation of SetLastError() (instead of forwarding to NTDLL)
- Implemented BaseSetLastNTError()
- Renamed Basep8BitStringToCachedUnicodeString() to Basep8BitStringToStaticUnicodeString() and sightly changed its implementation
- Fixed implementation of LoadLibraryExA() & DisableThreadLibraryCalls() using those changes
This is matching w2k3 implementation. This is of course a WIP.

svn path=/trunk/; revision=50819
2011-02-19 17:00:08 +00:00
Giannis Adamopoulos 4638bf943c [win32k]
- Fix combobox to show the drop down window correctly when the parent window is topmost
See issue #5705 for more details.

svn path=/trunk/; revision=50818
2011-02-19 16:09:59 +00:00
Pierre Schweitzer 2352ea6662 [NTOSKRNL]
- No need to use ULONG when dealing with strings, USHORT is enough. This makes MSVC warnings silent.
- Fix a really nasty bug in FsRtlIsHpfsDbcsLegal()

svn path=/trunk/; revision=50817
2011-02-19 13:58:55 +00:00
Giannis Adamopoulos 5d2a7901f7 [win32k]
- Revert r50121 and r50154

svn path=/trunk/; revision=50816
2011-02-19 12:22:52 +00:00
Amine Khaldi 6d4a648fe6 Fix a typo.
svn path=/trunk/; revision=50815
2011-02-19 10:20:27 +00:00
Giannis Adamopoulos dc663b0be2 - Remove a documented definition from undocuser.h
svn path=/trunk/; revision=50814
2011-02-18 20:26:19 +00:00
Giannis Adamopoulos c7b9d6f0df [user32/win32k]
- Implement MessageBeep and SetLogonNotifyWindow

[winlogon]
- Implement receiving notifications from win32k to play sounds of MessageBeep

svn path=/trunk/; revision=50813
2011-02-18 20:16:43 +00:00
Amine Khaldi 6f76e10ed7 [CMAKE]
- Fix hhctrl msvc build.

svn path=/branches/cmake-bringup/; revision=50812
2011-02-18 19:48:33 +00:00
Amine Khaldi 296da83caf [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50811
2011-02-18 19:40:51 +00:00
Timo Kreuzer 1766b55f4d [CMAKE]
Add support for VS 8-10 and SDK to configure script, add error checks. Patch by Samuel Serapion with small modifications by me.

svn path=/branches/cmake-bringup/; revision=50810
2011-02-18 17:35:50 +00:00
Amine Khaldi 5a357ba755 [CMAKE]
- Fix shlwapi msvc build.

svn path=/branches/cmake-bringup/; revision=50809
2011-02-18 17:34:55 +00:00
Amine Khaldi 855d46d1f9 [CMAKE]
- Fix shlwapi build. This reverts r50794.

svn path=/branches/cmake-bringup/; revision=50808
2011-02-18 17:30:19 +00:00
Giannis Adamopoulos bc92849c38 [win32k]
- Fix a bug that caused problems when the user clicks in the caption of a window to activate it

svn path=/trunk/; revision=50807
2011-02-18 16:28:52 +00:00
Timo Kreuzer dda9fb952c [NTOSKRNL]
Alex messed up.
Fix by Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>

svn path=/trunk/; revision=50806
2011-02-18 15:59:32 +00:00
Johannes Anderwald c630ded4ea - Fix for the fix (suggested by cmake doyen)
svn path=/branches/cmake-bringup/; revision=50805
2011-02-18 15:09:22 +00:00
Timo Kreuzer 5e45b1eb7a [WIN32K]
Fix a bug in GDIOBJ_LockObj, that would cause a deadlock, when an object was deleted while another thread was waiting to acquire the handle lock.

svn path=/trunk/; revision=50804
2011-02-18 15:08:50 +00:00
Timo Kreuzer 269bbf1328 [CSRSRV]
Dereference all threads, when a process is terminated. Fixes ghost processes in taskmgr! Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>

See issue #1567 for more details.

svn path=/trunk/; revision=50803
2011-02-18 15:01:00 +00:00
Johannes Anderwald 35981f6794 - Fix a few linking errors for msvc CMakeLists
- Fails to find _isinf

svn path=/branches/cmake-bringup/; revision=50802
2011-02-18 14:58:30 +00:00
Johannes Anderwald a0dee4ab22 - Fix ddraw build
svn path=/branches/cmake-bringup/; revision=50801
2011-02-18 14:48:09 +00:00
Aleksey Bragin da4ba71aee [RTL/DPH]
- Zero-initialize VM allocation base.
- Don't reserve VM, just commit it right away. This was a premature optimisation. Instead, retry committing a smaller amount of memory if committing all memory fails.

svn path=/trunk/; revision=50800
2011-02-18 14:45:13 +00:00
Timo Kreuzer b58bdd0a99 [WIN32K]
compile gdidebug code as a seperate file and give it a seperate header

svn path=/trunk/; revision=50799
2011-02-18 14:35:44 +00:00
Giannis Adamopoulos a33a1f21db [explorer]
- Fix some visual problems in the toolbar

svn path=/trunk/; revision=50798
2011-02-18 14:28:58 +00:00
Giannis Adamopoulos 20ec135208 [win32k]
- Check if CombinedClip is NULL before accesing it

Should fix a crash with Download Master

svn path=/trunk/; revision=50797
2011-02-18 14:26:11 +00:00
Johannes Anderwald 0970afe8cf - Fix kmixer linking
svn path=/branches/cmake-bringup/; revision=50796
2011-02-18 12:09:10 +00:00
Johannes Anderwald ab7c42e1cc - Fix acpi really.
svn path=/branches/cmake-bringup/; revision=50795
2011-02-18 12:01:54 +00:00
Johannes Anderwald 8981bb0251 - Fix shlwapi linking
svn path=/branches/cmake-bringup/; revision=50794
2011-02-18 11:27:42 +00:00
Amine Khaldi 3023e9622f [CMAKE]
- Fix sysdm build.

svn path=/branches/cmake-bringup/; revision=50793
2011-02-18 11:06:34 +00:00
Amine Khaldi 21a72dbc59 [CMAKE]
- Fix powercfg build.

svn path=/branches/cmake-bringup/; revision=50792
2011-02-18 11:04:12 +00:00
Amine Khaldi 6d6a4a8382 [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50791
2011-02-18 10:56:43 +00:00
Amine Khaldi 5b4e1e33bf [CMAKE]
- Fix LINK (msvc) warnings.

svn path=/branches/cmake-bringup/; revision=50790
2011-02-18 10:51:01 +00:00