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
4cfce24f
Commit
4cfce24f
authored
Mar 24, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete the unicodification of comctl32undoc.
parent
04881fae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+12
-10
No files found.
dlls/comctl32/comctl32undoc.c
View file @
4cfce24f
...
...
@@ -88,6 +88,8 @@ typedef struct _LOADDATA
typedef
HRESULT
(
CALLBACK
*
DPALOADPROC
)(
LPLOADDATA
,
IStream
*
,
LPARAM
);
static
const
WCHAR
strMRUList
[]
=
{
'M'
,
'R'
,
'U'
,
'L'
,
'i'
,
's'
,
't'
,
0
};
/**************************************************************************
* DPA_LoadStream [COMCTL32.9]
*
...
...
@@ -558,7 +560,7 @@ typedef struct tagWINEMRULIST
BOOL
isUnicode
;
/* is compare fn Unicode */
DWORD
wineFlags
;
/* internal flags */
DWORD
cursize
;
/* current size of realMRU */
LP
STR
realMRU
;
/* pointer to string of index names */
LP
WSTR
realMRU
;
/* pointer to string of index names */
LPWINEMRUITEM
*
array
;
/* array of pointers to data */
/* in 'a' to 'z' order */
}
WINEMRULIST
,
*
LPWINEMRULIST
;
...
...
@@ -603,12 +605,12 @@ static void MRU_SaveChanged ( LPWINEMRULIST mp )
}
if
(
mp
->
wineFlags
&
WMRUF_CHANGED
)
{
mp
->
wineFlags
&=
~
WMRUF_CHANGED
;
err
=
RegSetValueEx
A
(
newkey
,
"MRUList"
,
0
,
REG_SZ
,
mp
->
realMRU
,
strlen
(
mp
->
realMRU
)
+
1
);
err
=
RegSetValueEx
W
(
newkey
,
strMRUList
,
0
,
REG_SZ
,
(
LPBYTE
)
mp
->
realMRU
,
(
strlenW
(
mp
->
realMRU
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
err
)
{
ERR
(
"error saving MRUList, err=%d
\n
"
,
err
);
}
TRACE
(
"saving MRUList=/%s/
\n
"
,
mp
->
realMRU
);
TRACE
(
"saving MRUList=/%s/
\n
"
,
debugstr_w
(
mp
->
realMRU
)
);
}
realname
[
1
]
=
0
;
for
(
i
=
0
;
i
<
mp
->
cursize
;
i
++
)
{
...
...
@@ -768,7 +770,7 @@ INT WINAPI AddMRUData (HANDLE hList, LPCVOID lpData, DWORD cbData)
if
((
replace
=
FindMRUData
(
hList
,
lpData
,
cbData
,
NULL
))
>=
0
)
{
/* Item exists, just move it to the front */
LP
STR
pos
=
strchr
(
mp
->
realMRU
,
replace
+
'a'
);
LP
WSTR
pos
=
strchrW
(
mp
->
realMRU
,
replace
+
'a'
);
while
(
pos
>
mp
->
realMRU
)
{
pos
[
0
]
=
pos
[
-
1
];
...
...
@@ -961,7 +963,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
/* get space to save indices that will turn into names
* but in order of most to least recently used
*/
mp
->
realMRU
=
Alloc
(
mp
->
extview
.
nMaxItems
+
2
);
mp
->
realMRU
=
Alloc
(
(
mp
->
extview
.
nMaxItems
+
2
)
*
sizeof
(
WCHAR
)
);
/* get space to save pointers to actual data in order of
* 'a' to 'z' (0 to n).
...
...
@@ -988,14 +990,14 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
/* get values from key 'MRUList' */
if
(
newkey
)
{
datasize
=
mp
->
extview
.
nMaxItems
+
1
;
if
((
err
=
RegQueryValueEx
A
(
newkey
,
"MRUList"
,
0
,
&
type
,
mp
->
realMRU
,
&
datasize
)))
{
if
((
err
=
RegQueryValueEx
W
(
newkey
,
strMRUList
,
0
,
&
type
,
(
LPBYTE
)
mp
->
realMRU
,
&
datasize
)))
{
/* not present - set size to 1 (will become 0 later) */
datasize
=
1
;
*
mp
->
realMRU
=
0
;
}
TRACE
(
"MRU list = %s, datasize = %ld
\n
"
,
mp
->
realMRU
,
datasize
);
TRACE
(
"MRU list = %s, datasize = %ld
\n
"
,
debugstr_w
(
mp
->
realMRU
)
,
datasize
);
mp
->
cursize
=
datasize
-
1
;
/* datasize now has number of items in the MRUList */
...
...
@@ -2366,7 +2368,7 @@ static LRESULT DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr)
lpNmh
->
code
=
uCode
;
}
return
SendMessage
A
(
lpNotify
->
hwndTo
,
WM_NOTIFY
,
idFrom
,
(
LPARAM
)
lpNmh
);
return
SendMessage
W
(
lpNotify
->
hwndTo
,
WM_NOTIFY
,
idFrom
,
(
LPARAM
)
lpNmh
);
}
...
...
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