Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b819f4cd
Commit
b819f4cd
authored
Jan 17, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed a couple of unnecessary calls to WIN_SuspendWndsLock.
parent
361ee299
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
22 deletions
+3
-22
edit.c
dlls/user/edit.c
+2
-7
user32.spec
dlls/user/user32.spec
+0
-2
winpos.c
dlls/x11drv/winpos.c
+1
-13
No files found.
dlls/user/edit.c
View file @
b819f4cd
...
...
@@ -1330,11 +1330,7 @@ static void EDIT_CalcLineWidth_SL(EDITSTATE *es)
*/
static
INT
EDIT_CallWordBreakProc
(
EDITSTATE
*
es
,
INT
start
,
INT
index
,
INT
count
,
INT
action
)
{
INT
ret
,
iWndsLocks
;
/* To avoid any deadlocks, all the locks on the window structures
must be suspended before the control is passed to the application */
iWndsLocks
=
WIN_SuspendWndsLock
();
INT
ret
;
if
(
es
->
word_break_proc16
)
{
HGLOBAL16
hglob16
;
...
...
@@ -1385,8 +1381,7 @@ static INT EDIT_CallWordBreakProc(EDITSTATE *es, INT start, INT index, INT count
else
ret
=
EDIT_WordBreakProc
(
es
->
text
+
start
,
index
,
count
,
action
);
WIN_RestoreWndsLock
(
iWndsLocks
);
return
ret
;
return
ret
;
}
...
...
dlls/user/user32.spec
View file @
b819f4cd
...
...
@@ -740,8 +740,6 @@
@ cdecl WIN_ListChildren(long)
@ cdecl WIN_ListParents(long)
@ cdecl WIN_ReleaseWndPtr(ptr)
@ cdecl WIN_RestoreWndsLock(long)
@ cdecl WIN_SetExStyle(long long)
@ cdecl WIN_SetStyle(long long)
@ cdecl WIN_SuspendWndsLock()
@ cdecl WIN_UnlinkWindow(long)
dlls/x11drv/winpos.c
View file @
b819f4cd
...
...
@@ -1743,7 +1743,6 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
DWORD
dwPoint
=
GetMessagePos
();
BOOL
DragFullWindows
=
FALSE
;
BOOL
grab
;
int
iWndsLocks
;
Display
*
old_gdi_display
=
NULL
;
Display
*
display
=
thread_display
();
...
...
@@ -1953,16 +1952,11 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
{
if
(
!
DragFullWindows
)
draw_moving_frame
(
hdc
,
&
newRect
,
thickframe
);
else
{
/* To avoid any deadlocks, all the locks on the windows
structures must be suspended before the SetWindowPos */
iWndsLocks
=
WIN_SuspendWndsLock
();
else
SetWindowPos
(
hwnd
,
0
,
newRect
.
left
,
newRect
.
top
,
newRect
.
right
-
newRect
.
left
,
newRect
.
bottom
-
newRect
.
top
,
(
hittest
==
HTCAPTION
)
?
SWP_NOSIZE
:
0
);
WIN_RestoreWndsLock
(
iWndsLocks
);
}
}
sizingRect
=
newRect
;
}
...
...
@@ -2003,10 +1997,6 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
/* window moved or resized */
if
(
moved
)
{
/* To avoid any deadlocks, all the locks on the windows
structures must be suspended before the SetWindowPos */
iWndsLocks
=
WIN_SuspendWndsLock
();
/* if the moving/resizing isn't canceled call SetWindowPos
* with the new position or the new size of the window
*/
...
...
@@ -2027,8 +2017,6 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
origRect
.
bottom
-
origRect
.
top
,
(
hittest
==
HTCAPTION
)
?
SWP_NOSIZE
:
0
);
}
WIN_RestoreWndsLock
(
iWndsLocks
);
}
if
(
IsIconic
(
hwnd
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment