Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c731ed30
Commit
c731ed30
authored
Feb 26, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Remove redundant IsWindow calls.
parent
c84fd858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
27 deletions
+8
-27
imm.c
dlls/imm32/imm.c
+8
-27
No files found.
dlls/imm32/imm.c
View file @
c731ed30
...
@@ -588,23 +588,9 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
...
@@ -588,23 +588,9 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
if
(
!
hIMC
)
if
(
!
hIMC
)
return
old
;
return
old
;
if
(
IsWindow
(
data
->
IMC
.
hWnd
))
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SETCONTEXT
,
FALSE
,
ISC_SHOWUIALL
);
{
/*
* Post a message that your context is switching
*/
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SETCONTEXT
,
FALSE
,
ISC_SHOWUIALL
);
}
data
->
IMC
.
hWnd
=
hWnd
;
data
->
IMC
.
hWnd
=
hWnd
;
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SETCONTEXT
,
TRUE
,
ISC_SHOWUIALL
);
if
(
IsWindow
(
data
->
IMC
.
hWnd
))
{
/*
* Post a message that your context is switching
*/
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_SETCONTEXT
,
TRUE
,
ISC_SHOWUIALL
);
}
return
old
;
return
old
;
}
}
...
@@ -2185,13 +2171,11 @@ LRESULT WINAPI ImmRequestMessageA(HIMC hIMC, WPARAM wParam, LPARAM lParam)
...
@@ -2185,13 +2171,11 @@ LRESULT WINAPI ImmRequestMessageA(HIMC hIMC, WPARAM wParam, LPARAM lParam)
InputContextData
*
data
=
get_imc_data
(
hIMC
);
InputContextData
*
data
=
get_imc_data
(
hIMC
);
TRACE
(
"%p %ld %ld
\n
"
,
hIMC
,
wParam
,
wParam
);
TRACE
(
"%p %ld %ld
\n
"
,
hIMC
,
wParam
,
wParam
);
if
(
!
data
)
SetLastError
(
ERROR_INVALID_HANDLE
);
if
(
data
&&
IsWindow
(
data
->
IMC
.
hWnd
))
if
(
data
)
return
SendMessageA
(
data
->
IMC
.
hWnd
,
WM_IME_REQUEST
,
wParam
,
lParam
);
return
SendMessageA
(
data
->
IMC
.
hWnd
,
WM_IME_REQUEST
,
wParam
,
lParam
);
return
0
;
SetLastError
(
ERROR_INVALID_HANDLE
);
return
0
;
}
}
/***********************************************************************
/***********************************************************************
...
@@ -2203,13 +2187,10 @@ LRESULT WINAPI ImmRequestMessageW(HIMC hIMC, WPARAM wParam, LPARAM lParam)
...
@@ -2203,13 +2187,10 @@ LRESULT WINAPI ImmRequestMessageW(HIMC hIMC, WPARAM wParam, LPARAM lParam)
TRACE
(
"%p %ld %ld
\n
"
,
hIMC
,
wParam
,
wParam
);
TRACE
(
"%p %ld %ld
\n
"
,
hIMC
,
wParam
,
wParam
);
if
(
!
data
)
if
(
data
)
return
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_REQUEST
,
wParam
,
lParam
);
SetLastError
(
ERROR_INVALID_HANDLE
);
if
(
data
&&
IsWindow
(
data
->
IMC
.
hWnd
))
return
SendMessageW
(
data
->
IMC
.
hWnd
,
WM_IME_REQUEST
,
wParam
,
lParam
);
return
0
;
SetLastError
(
ERROR_INVALID_HANDLE
);
return
0
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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