Eric Pouech
341b341605
user.exe16: Enable compilation with long types.
...
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-21 12:32:07 +01:00
Alexandre Julliard
f0cd33c69e
include: Add support for defining Win32 types as 'long' where possible.
...
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
879ccd3357
user.exe: Make sure that the thunk selector doesn't get freed.
...
Spotted by Fabian Maurer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=12732
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-20 11:07:56 +01:00
Huw Davies
8e5774eaa6
user: Copy back the 16-bit MDICREATESTRUCT.
...
Otherwise lpCreateParams is overwitten by CREATESTRUCT32Ato16().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52356
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-11 15:15:34 +01:00
Nikolay Sivov
0f16aa1842
user.exe: Fix WM_ERASEBKGND HDC param conversion in WINPROC_CallProc16To32A.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51624
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51899
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-30 22:07:21 +01:00
Jacek Caban
1bfae238c8
user.exe: Use WINPROC_CallProc16To32A for DefWindowProc16.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51624
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51899
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-30 22:07:21 +01:00
Jacek Caban
c166e9694e
gdi32: Don't export Wine extensions.
...
Link directly to win32u instead.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-08 16:54:48 +02:00
Alexandre Julliard
f87262ea99
include: Add CURRENT_SS/SP macros for 16-bit code.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 21:31:53 +01:00
Alexandre Julliard
6e1c296ef3
include: Make the CURRENT_STACK16 and CURRENT_DS macros available globally.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-26 21:31:53 +01:00
Alexandre Julliard
fbbad0f10a
makefiles: Always build 16-bit modules with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-02 11:09:19 +02:00
Alexandre Julliard
64bd952b85
user.exe: Clear out the thunk array to catch invalid winprocs.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48814
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-26 18:34:49 +01:00
Jeff Smith
0778945e34
user.exe16: Releasing DC does not disable it.
...
ReleaseDC in user32 marks cache DCs as disabled. For user.exe (the
16-bit equivalent), this causes DCs to become inaccessible after
release. On Windows, they are still accessible after release.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44408
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 16:09:15 +01:00
Alexandre Julliard
84f39259b1
user.exe: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-25 08:32:37 +02:00
Alexandre Julliard
0d7d0427d0
user.exe: Avoid using libwine functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-21 18:08:36 +02:00
Alexandre Julliard
a23c20eee1
include: Don't allow using wine/library.h with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 20:01:01 +02:00
Piotr Caban
49ce3132d9
user.exe16: Don't use strncasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-01 21:54:32 +02:00
Michael Stefaniuc
7ddbec0ecc
user.exe16: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:02 +02:00
Alex Villacís Lasso
0a788caf8b
user.exe16: Fix handling of DDL_DRIVES flag in DlgDirList.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18734
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-12 12:57:54 +02:00
Alexandre Julliard
39f0bbff4e
user32: Set the thread DPI awareness to the window's when calling a window procedure.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-02 17:33:19 +02:00
Sebastian Lackner
538263d0ef
user.exe16: Don't open code CONTAINING_RECORD.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 19:46:28 +01:00
Martin Payne
81fb745e40
user.exe16: Fix handling of 16-bit HBITMAPs in InsertMenu16.
...
Signed-off-by: Martin Payne <development@martinpayne.me.uk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-14 13:50:56 +01:00
Martin Payne
7f47234c9b
user.exe16: Implemented OldExitWindows() user.exe16 function.
...
Signed-off-by: Martin Payne <development@martinpayne.me.uk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-13 20:14:53 +01:00
Alexandre Julliard
55fd7667d3
user.exe: Don't use the relay channel for normal traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-25 12:05:41 +01:00
Martin Payne
5ec4d1be97
user.exe16: Support Windows 2 menus.
...
Signed-off-by: Martin Payne <development@martinpayne.me.uk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-27 09:27:34 +02:00
Gerald Pfeifer
51fea2208e
user.exe16: Fix ADD_TO_T macro.
...
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:09 +02:00
Dmitry Timoshkov
a628412f2b
user.exe16: Remove redundant HeapReAlloc.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 10:05:44 +02:00
Dmitry Timoshkov
8c3ed82927
user.exe16: Fix memory leak in case when HeapReAlloc fails.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-22 10:05:42 +02:00
Zebediah Figura
abfa87dabf
user.exe16: Fix LPARAM conversions in WM_DDE_EXECUTE.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-09 20:49:09 +01:00
Jacek Caban
36b64321b2
user32: Use the original owner used to create the dialog for WM_ENTERIDLE messages.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 22:09:30 +09:00
Jacek Caban
d75991d80e
user32: Removed unused owner argument.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 14:19:06 +09:00
Nikolay Sivov
d07a7bbba5
user.exe: Fully convert MSG16 to MSG in IsDialogMessage() (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-29 22:38:35 +01:00
Nikolay Sivov
eee6332e95
user.exe: Fix MapDialogRect() to actually convert passed rectangle (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:17:39 +01:00
Alexandre Julliard
b266fcaa66
Revert "user.exe: Release the Win16 lock due to loading 32-bit dlls in CreateWindow."
...
This reverts commit 9ac7bca209
.
The bug has now been fixed in winoldap instead.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:53 +09:00
Michael Stefaniuc
7be37c9874
user.exe16: Fix a misplaced closing bracket (PVS-Studio).
...
Previous code was setting ret to 1 for negative return values of
vsnprintf; that would fail on glibc 2.0.6 and older.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 13:28:51 +09:00
Akihiro Sagawa
9ac7bca209
user.exe: Release the Win16 lock due to loading 32-bit dlls in CreateWindow.
2015-08-06 23:36:02 +09:00
Austin English
39730102aa
user.exe16: Downgrade a couple MESSAGEs to WARNs.
2014-04-16 10:52:54 +02:00
Alexandre Julliard
5e7416e5c8
makefiles: Get rid of the MAKE_DLL_RULES variable.
2014-01-02 12:08:18 +01:00
Alexandre Julliard
b192879597
makefiles: Automatically output appropriate target flags.
2014-01-01 21:44:38 +01:00
Frédéric Delanoy
861106c7ec
user.exe16: Use BOOL type where appropriate.
2013-11-26 10:16:11 +01:00
Frédéric Delanoy
1c4456f7a2
user.exe16: Use BOOL type where appropriate.
2013-10-23 11:20:58 +02:00
Michael Stefaniuc
2a39cb377a
dlls: Replace the remaining CONSTs.
2013-09-25 11:49:20 +02:00
Alexandre Julliard
4894711768
user.exe: Always pass a resource size to CreateIconFromResourceEx16.
2013-06-17 13:34:40 +02:00
Michael Stefaniuc
96e428cc9e
user.exe16: Use FIELD_OFFSET to calculate the size of a struct with variable length array.
2012-11-12 13:16:59 +01:00
Marcus Meissner
f917cd0e42
user.exe: Avoid truncating strcmp result (Coverity).
2012-07-09 10:11:56 -04:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
Marcus Meissner
90ca362013
user.exe16: Fixed incorrect sizeof() (Coverity).
2011-10-19 16:38:51 +02:00
André Hentschel
f12e6a11d8
user.exe: Remove dead assignment (clang).
2011-07-14 14:45:00 +02:00
Francois Gouget
5920de5ffb
Assorted spelling and case fixes.
2011-05-09 12:09:27 +02:00
Alexandre Julliard
33807ac093
user.exe: Don't try calling the WH_CALLWNDPROC hook if no hook was set.
2011-03-11 11:47:08 +01:00
Alexandre Julliard
eda6079681
user.exe: Call the 16-bit hook directly in SendMessage16.
2011-03-08 14:50:18 +01:00