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
8711d5e6
Commit
8711d5e6
authored
Oct 19, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Set nSelectedIndex on exit.
parent
39131cf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
pastespl.c
dlls/oledlg/pastespl.c
+8
-1
No files found.
dlls/oledlg/pastespl.c
View file @
8711d5e6
...
...
@@ -236,7 +236,7 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps)
DWORD
src_fmt
,
req_fmt
;
for
(
req_fmt
=
0
;
req_fmt
<
ps
->
cPasteEntries
;
req_fmt
++
)
{
/* This is used by update_struct() to set nSelectedIndex on exit */
/* This is used by update_struct
ure
() to set nSelectedIndex on exit */
ps
->
arrPasteEntries
[
req_fmt
].
dwScratchSpace
=
req_fmt
;
TRACE
(
"req_fmt %x
\n
"
,
ps
->
arrPasteEntries
[
req_fmt
].
fmtetc
.
cfFormat
);
for
(
src_fmt
=
0
;
src_fmt
<
fetched
;
src_fmt
++
)
...
...
@@ -465,6 +465,13 @@ static void send_end_dialog_msg(HWND hdlg, ps_struct_t *ps_struct, UINT id)
static
void
update_structure
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
LONG
cur_sel
=
SendMessageW
(
GetDlgItem
(
hdlg
,
IDC_PS_DISPLAYLIST
),
LB_GETCURSEL
,
0
,
0
);
if
(
cur_sel
!=
-
1
)
{
OLEUIPASTEENTRYW
*
pent
;
pent
=
(
OLEUIPASTEENTRYW
*
)
SendMessageW
(
GetDlgItem
(
hdlg
,
IDC_PS_DISPLAYLIST
),
LB_GETITEMDATA
,
cur_sel
,
0
);
ps_struct
->
ps
->
nSelectedIndex
=
pent
->
dwScratchSpace
;
}
ps_struct
->
ps
->
dwFlags
=
ps_struct
->
flags
;
ps_struct
->
ps
->
fLink
=
(
ps_struct
->
flags
&
PSF_SELECTPASTELINK
)
?
TRUE
:
FALSE
;
}
...
...
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