Commit graph

471 commits

Author SHA1 Message Date
Joachim Henze bc7a641f18 [0.4.11][CRT] Fix 2 MSVC compiler warnings CORE-17812
observed with MSVC2010SP1 16.0.40219.1 x86-target in dbg+rls-config several times:
sdk\lib\crt\string\wtoi64.c(28) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
sdk\lib\crt\string\wtoi64.c(194) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

the fix is a PARTIAL port of 0.4.15-dev-2951-g 5d8e834897

and while touching the file
fix another white-space-glitch.
in sum that brings us 100% in sync in this file to master 0.4.15-dev-3264-g570cedf.
2022-03-18 21:29:08 +01:00
Joachim Henze f9dc3a86b6 [0.4.11][WIN32SS][RTL] Fix regression CORE-16769 + BSOD 0x50 CORE-13907
The main motivation to port all that back is to get rid of Win32K-BSODs 0x50 like CORE-13907
that could be triggered by user-mode-applications.
Technical reason was CORE-14857 "RtlImageNtHeaderEx needs SEH" and issues with hooks+callbacks.
All other tickets mentioned in here were regressions that we experienced on the long
journey towards perfecting the fixes on master head, and those were not happening yet in the older builds,
so they are mentioned in here only to allow tracking where that code went into.

Thanks to Jim Tabor, Mark Jansen & Thomas Faber
By squashed backmerge of the following commits:
0.4.15-dev-3440-g a89844f740
0.4.15-dev-3430-g 9cff384c22
0.4.14-dev-1287-g 568b6d0558
0.4.14-dev-1255-g 177ae91bf6
0.4.14-dev-1241-g 915a5764a9
0.4.14-dev-1240-g d8add40e89
0.4.14-dev-1002-g feb7df42b4

JIRA-tickets: CORE-13907, CORE-16769, CORE-14857, CORE-17856, CORE-17857, partially CORE-13019.
We also had some more dupes of CORE-13907 in JIRA, but I linked all of them (transitively)
towards the initial report, and resolved them without setting a fixVer for them.

In more detail:
--------------
[USER32] Fix BSOD 0x50 in 'WineVDM + Castle Of Winds' CORE-17856 CORE-17857

CORE-17856 BSOD 0x50 when starting Castle of the Winds second time, with WineVDM
CORE-17857 BSOD 0x50 on shutdown after closing Castle of the Winds with WineVDM

0.4.15-dev-3430-g 9cff384c22
0.4.15-dev-3440-g a89844f740
--------------
[NTUSER] Fix Strings and Format to Hooks

Allocate heap instead of data segment to be used for callbacks on user side.
Move and correct initial hook call out setup. Use it in more than one hook call.

This fixes issues with strings out of alignment and use of kernel pointers.

See CORE-13907 (HXD-portable BSOD) and CORE-16769 (HXD-portable exception)

Small wow update.

cherry picked from commit 0.4.14-dev-1287-g 568b6d0558
--------------
[RTL] Introduce RtlpImageNtHeader,
which implements the required functionality.
ntdll and ntoskrnl now have a wrapper for this, with SEH.
This protects the function against malformed / bad images,
whilst still being able to use the code in freeldr et al.
Idea from Thomas.
CORE-14857

cherry picked from commit 0.4.14-dev-1255-g 177ae91bf6
--------------
[WIN32SS] Form Sanity to Hook Callbacks

Fix WH_CALLWNDPROC/RET data to user hook calls.
Helps with CORE-13907 "(HXD-portable BSOD)"
Fixes the logging of "(win32ss/user/ntuser/callback.c:748) err: Failure to make Callback! Status 0xc00000fd" within CORE-13019, but not the whole ticket.

cherry picked from commit 0.4.14-dev-1241-g 915a5764a9
--------------
[USER32] Fix null return.

See CORE-16769 "HxD 1.7.7.0 portable unhandled exception"

cherry picked from commit 0.4.14-dev-1240-g d8add40e89
--------------
[WIN32SS] Fix a typo in dbg print

cherry picked from commit 0.4.14-dev-1002-g feb7df42b4
2022-03-17 14:00:15 +01:00
Joachim Henze f663d176a5 [0.4.11][SHELL32][SHLWAPI][COMDLG32][SDK] Unable to select a Zip file for sending with Common Open Dialog CORE-16908
It "regressed" by 0.4.9-dev-632-g da6a46c6ac when zipfldr.dll got registered.
Ftr: Even without this complex fix it was possible to workaround this bug by 'regsvr32 /u zipfldr.dll'.

by porting back:
0.4.15-dev-279-g 83a9f71690 CORE-16908 [SHELL32] Allow creation of an empty CFileSysEnum
0.4.15-dev-254-g 332889b8d7 CORE-16908 [COMDLG32] Differentiate between real and virtual folders
0.4.15-dev-252-g f379a29606 CORE-16908 [SHELL32][SDK] Properly enumerate virtual shell folders (on files) as fake folders
0.4.15-dev-251-g b1003ae909 CORE-16908 [SHELL32] Update CFileSysEnum to be maintaineable
0.4.15-dev-250-g ac215455bb CORE-16908 [SHLWAPI] Fix SHRegGetCLSIDKeyW
and we also need:
0.4.14-dev-73-g 5d54b65ceb CORE-16271 [SHELL32] Add support for custom View objects defined with UICLSID
2022-02-26 23:54:38 +01:00
Joachim Henze 72cfd7de5b [0.4.11][CMAKE][BOOTDATA] Fix LiveCD does not import caroots.inf into registry CORE-17739 CORE-17735 (#3930)
It regressed by 0.4.9-dev-82-g 6158207c31

fix picked from 0.4.15-dev-3082-g 2268b33e18
2022-01-21 23:10:28 +01:00
Joachim Henze cbe7a5fd14 [0.4.11][CRT] Do Not lock ioinfo when spawning functions (#4099) CORE-15176
This fixes CORE-15176 'Gimp 2.6.11 hangs when opening a file'.
It regressed by 0.4.9-dev-446-g bffd8201d0

Fix picked from 0.4.15-dev-3363-g 252a7530d0
2022-01-09 09:28:17 +01:00
Joachim Henze c70dd7009f [0.4.11][SYSDM] Restore the general tabs layout and soft localization update
Although the new layout that I committed in the previous commit
was favored by community ratings votes 8:0,
some devs still preferred the old layout with the bigger logo
because they liked the easteregg. So this commit restores
that.

But it syncs to that features latest&greatest implementation
we have in 0.4.15-dev-1685-gd0c237a instead of reverting the
previous commit to not unnecessarily have many bugs with it
that were still affecting the older releases beforehand.

Aside from the general tabs dialogs layout this commit does
also fix some minor issues in the translations for the oldest
branches in pl-PL, jp-JA, zh-CN and zh-TW.

And it fixes an x64 issue in general.c for 0.4.7 and 0.4.8.
2021-02-01 21:55:20 +01:00
Joachim Henze a8e115cc09 [0.4.11][NTOSKRNL] Restore section layout for NTOSKRNL to fix BSOD regression CORE-14683
Thomas Faber thinks that it's a bit more
safe to just move "after .rsrc" instead of the proper "after .reloc".
A temporary tribute until ROSBE-154 will be fixed properly.

For now we use this just for NTOSKRNL, but not for drivers yet, see
MODULE TYPE sdk/cmake/gcc.cmake
As using also for drivers would immediately lead to BSODs like CORE-16183.
To allow installing DVDWritenow without BSOD,
we need the script at least for ntoskrnl!

The regression was introduced by SVN r55835 == git
6ebf8c2537

This patch (after .rsrc) was already committed into 0.4.15-dev-220-g
d28677795e
2020-10-31 16:31:41 +01:00
Joachim Henze ed7305b9cf [0.4.11] [SDK] Remove 'RC' from version.cmake 2019-03-02 12:39:34 +01:00
Joachim Henze cf0c1ad7d5 [0.4.11] Avoid regression CORE-14955 "Ddraw fullscreen crashes"
This brings us back to before commit 0.4.10-dev-55-g
7af3969e9f

and therefore downgrades D3D8,D3D9,DDRAW,WINED3D from 3.9 to 3.3 for this rls.

This is same versions as we had in 0.4.10rls (I used same revert then)

Purpose of this revert is to fix crashes when Ddraw apps switch
into fullscreen with VBEMP and inbuilt Mesa.
I tested, before:
 DxDiag crashed when switching to fullscreen,
 Diablo II crashed immediately,
 Monster-Truck-Madness 2 demo crashed after main menu

Afterwards all of these apps do run.
DXTN does still work after that, even with VBEMP and inbuilt Mesa.

This will be the interim fix, which I will keep for rls at least
until someone manages to fix CORE-14955 properly in master with Wine 3.9.

analog to 0.4.10-RC-17-g
bb4c55d650
2018-12-16 21:07:39 +01:00
Joachim Henze 26080d0c64 [0.4.11] [RDBSS] Avoid CORE-13938
Pierre recommended this hack-fix for 0.4.8rls before.
Avoids "GetVolumeInformation now fails on NFS volume"

I will not retest any RDBSS functionality myself in my tests,
maybe some other tester would be kind enough to retest this?

Please note that I replaced #if 0 with #if 1
as discussed with Pierre. That's different to the patch in ticket.

like in last release
(cherry picked from commit 1906186e83)
2018-12-12 23:07:49 +01:00
Timo Kreuzer 7cd586252f [0.4.11] Revert "[CMAKE] Use configured include files to define the
__RELFILE__ hack (#979)"

done in context of CORE-14839 (1 of 2 commits)

This reverts commit 0.4.11-dev-516-g
07bd6089ec.

cherry picked from commit 0.4.12-dev-28-g
05169a4987
2018-12-11 22:14:05 +01:00
Joachim Henze 5862081159 [0.4.11] Branch releases/0.4.11 & change KERNEL_VERSION_BUILD_TYPE "RC"
as first commit before! adding the git-tag
2018-12-09 14:42:40 +01:00
Serge Gautherie b92f1f4cdf
[LOG2LINES] Free all memory on exit. 2018-12-08 17:38:24 +01:00
Serge Gautherie ca2bb9ee28
[LOG2LINES] Optimize malloc() calls. 2018-12-08 17:38:16 +01:00
Hermès Bélusca-Maïto dbaa875f05
[LOG2LINES] Fix indentation. 2018-12-08 17:38:03 +01:00
Serge Gautherie f5f515c17c
[LOG2LINES] Replace overkill malloc() usage.
NOTE: Since the 'cache_name' and 'tmp_name' pointers move inside the
corresponding cached strings, separate cache buffers are needed.
2018-12-08 17:34:18 +01:00
Eric Kohl d383d1c6b0 [PSDK] Add DeleteProfileA/W prototypes to userenv.h. 2018-12-08 15:23:04 +01:00
Serge Gautherie c34fa1e389 [SDK][NDK] Move SYSTEM_POWER_INFORMATION to ntpoapi.h (#869)
As suggested by Thomas Faber. See CORE-12587 for more details.
2018-12-05 13:48:01 +01:00
Eric Kohl 04f35dc8f5 [MC] Add messages 5770-5809 to netmsg.dll.
Netmsg.dll is complete! Translations welcome!
2018-12-01 15:16:10 +01:00
Eric Kohl e6c4933c66 [MC] Add messages 5150-5296 to netmsg.dll. 2018-12-01 14:40:26 +01:00
Eric Kohl 54c123aa45 [MC] Add messages 5000-5104 to netmsg.dll. 2018-12-01 13:08:20 +01:00
Eric Kohl 4692f5f1cc [MC] Add messages 4930-4999 to netmsg.dll. 2018-12-01 11:35:56 +01:00
Katayama Hirofumi MZ 165fa1fa7e
[INCLUDE] Update winxx.h and msgdump.h (#1083) 2018-12-01 18:58:43 +09:00
Eric Kohl 792dd0dac5 [MC] Add messages 4800-4862 to netmsg.dll. 2018-11-30 23:58:59 +01:00
Hermès Bélusca-Maïto e6e9cdf8e0
[SDK] Add transact.idl, txcoord.idl and txdtc.idl, and introduce MS-PSDK-compatible adsiid library that defines GUIDs used by ADS interfaces. 2018-11-30 21:49:23 +01:00
Andrew Boyarshin 8c710dc518 [SDK] Allow use of SYSTEM_MEMORY_LIST_INFORMATION in kernel code 2018-11-30 10:21:12 +01:00
Eric Kohl 8bc141a9ad [MC] Add messages 4700-4778 to netmsg.dll. 2018-11-29 21:27:31 +01:00
Pierre Schweitzer 9476baf616
[SDK] Move TCPIP_OWNER_MODULE_BASIC_INFO definition to the right file 2018-11-29 20:30:23 +01:00
Pierre Schweitzer 60203092d7
[SDK] Define TCPIP_OWNER_MODULE_BASIC_INFO 2018-11-29 20:30:22 +01:00
Eric Kohl 2eb652c0f8 [MC] Add messages 4600-4699 to netmsg.dll. 2018-11-28 23:13:00 +01:00
Eric Kohl e486d8aaa6 [MC] Add messages 4450-4580 to netmsg.dll. 2018-11-27 22:56:10 +01:00
Pierre Schweitzer 7ce2f09a70
[SDK] Add AllocateAndGetTcp/UdpEx/2TableFromStack() functions family 2018-11-27 21:36:47 +01:00
Pierre Schweitzer 05657bfcfd
[SDK] Add a non documenter TOIID used to query modules information 2018-11-27 21:36:47 +01:00
Giannis Adamopoulos f05d01ec2f [FILEBROWSER]
In the struct passed to SHCreateFromDesktop the fourth field is the parameter that later on will be passed to ShowWindow. Initialize it properly so that when we run filrbrowser.exe in win2k3 the main window won't be hidden.
2018-11-27 10:33:45 +02:00
Eric Kohl 3e3560e9c2 [MC] Add messages 4400-4440 to netmsg.dll. 2018-11-26 21:34:34 +01:00
Eric Kohl e397003617 [MC] Add messages 4350-4399 to netmsg.dll. 2018-11-25 23:24:19 +01:00
Eric Kohl a94d24fe20 [MC] Add messages 4300-4349 to netmsg.dll. 2018-11-25 15:41:53 +01:00
Pierre Schweitzer cdf47d5254
[VFATLIB] Drop a hack no longer needed after f87d9ca 2018-11-25 10:41:22 +01:00
Eric Kohl 40f066657e [MC] Add messages 5730-5769 to netmsg.dll. 2018-11-25 10:38:54 +01:00
Eric Kohl 2410eef6d2 [PSDK] Add missing NELOG_ error codes to lmerrlog.h. 2018-11-24 22:29:02 +01:00
Eric Kohl 41f991b1be [MC] Add message 5300-5381 to netmsg.dll. 2018-11-24 22:07:28 +01:00
Pierre Schweitzer aac38dfed8
[RDBSS] Fix a typo
Spotted by Hermès
2018-11-24 22:00:09 +01:00
Pierre Schweitzer fbdfe7bd40
[SDK] Add GetExtendedUdpTable() 2018-11-24 21:41:10 +01:00
Eric Kohl ded2783906 [MC] Add messages 3802-3969 and 5700-5729 to netmsg.dll. 2018-11-24 13:51:50 +01:00
Pierre Schweitzer 738f327668
[IP] Add a TCPGetSocketStatus() wrapper around LibTCPGetSocketStatus() 2018-11-23 22:51:35 +01:00
Pierre Schweitzer 29c1510423
[LWIP] Implement a LibTCPGetSocketStatus() function in our LwIP glue
It is used to query a socket state (established, closed, and so on).
2018-11-23 22:51:35 +01:00
Stanislav Motylkov baf2c0cc2d [DRWTSN32] Add SMBIOS data to the system information (#1017)
[DMILIB][UDMIHELP] Allow functions to be linked with C++ code.
2018-11-21 21:49:15 +01:00
William Kent c1b4d51f0b
[MC] Fix syntax errors in errcodes.mc
This was causing the MSVC build to fail.
2018-11-21 00:15:42 +01:00
Eric Kohl 634192cccd [MC] Add messages 3710-3790 to netmsg.dll. 2018-11-18 23:58:12 +01:00
Pierre Schweitzer 7c0a8eb555
[TDILIB] Make tdiGetSetOfThings() return useful status 2018-11-18 16:30:45 +01:00