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
af088286
Commit
af088286
authored
Feb 12, 2010
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Feb 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Private copy of a result string is unnecessary.
parent
ca01a441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
xim.c
dlls/winex11.drv/xim.c
+2
-16
No files found.
dlls/winex11.drv/xim.c
View file @
af088286
...
...
@@ -45,8 +45,6 @@ BOOL ximInComposeMode=FALSE;
static
DWORD
dwCompStringLength
=
0
;
static
LPBYTE
CompositionString
=
NULL
;
static
DWORD
dwCompStringSize
=
0
;
static
LPBYTE
ResultString
=
NULL
;
static
DWORD
dwResultStringSize
=
0
;
#define STYLE_OFFTHESPOT (XIMPreeditArea | XIMStatusArea)
#define STYLE_OVERTHESPOT (XIMPreeditPosition | XIMStatusNothing)
...
...
@@ -159,14 +157,8 @@ static BOOL X11DRV_ImmSetInternalString(DWORD dwIndex, DWORD dwOffset,
}
else
if
((
dwIndex
==
GCS_RESULTSTR
)
&&
(
lpComp
)
&&
(
dwCompLen
))
{
if
(
dwResultStringSize
)
HeapFree
(
GetProcessHeap
(),
0
,
ResultString
);
dwResultStringSize
=
byte_length
;
ResultString
=
HeapAlloc
(
GetProcessHeap
(),
0
,
byte_length
);
memcpy
(
ResultString
,
lpComp
,
byte_length
);
rc
=
IME_SetCompositionString
(
SCS_SETSTR
,
ResultString
,
dwResultStringSize
,
NULL
,
0
);
rc
=
IME_SetCompositionString
(
SCS_SETSTR
,
lpComp
,
byte_length
,
NULL
,
0
);
IME_NotifyIME
(
NI_COMPOSITIONSTR
,
CPS_COMPLETE
,
0
);
}
...
...
@@ -203,12 +195,6 @@ static void X11DRV_ImmSetOpenStatus(BOOL fOpen)
dwCompStringSize
=
0
;
dwCompStringLength
=
0
;
CompositionString
=
NULL
;
if
(
dwResultStringSize
)
HeapFree
(
GetProcessHeap
(),
0
,
ResultString
);
dwResultStringSize
=
0
;
ResultString
=
NULL
;
}
IME_SetOpenStatus
(
fOpen
);
...
...
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