Commit Graph

70 Commits

Author SHA1 Message Date
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
Alexandre Julliard d86df45602 user.exe: Avoid using the CONTEXT86 type. 2010-10-20 18:37:08 +02:00
Alexandre Julliard 88be48ebeb makefiles: Use the -m16 option with 16-bit resources for consistency. 2010-09-29 20:15:57 +02:00
Austin English 0f05f90aa2 user.exe16: Fix a compiler warning on clang. 2010-09-20 13:57:04 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard a157959dbe user.exe: Store the GDI instance when it's first loaded. 2010-05-24 23:35:37 +02:00
Alexandre Julliard 5d9801bc7f user.exe: Make sure 16-bit user and gdi never get unloaded. 2010-05-24 13:43:00 +02:00
Gerald Pfeifer cbbfbca9e4 user.exe16: Remove variable width which is not really used from listbox_proc16. 2010-05-10 10:11:37 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard a9a5dae064 user.exe: The default dialog button id is 0 on Win16. 2010-02-18 11:12:11 +01:00
Alexandre Julliard a64765f673 user32: Don't overwrite the default button id when creating the dialog structure. 2010-02-17 11:43:34 +01:00