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
4964c1e9
Commit
4964c1e9
authored
Jun 22, 2006
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Removed use of strlenW, strcmpW and strcpyW functions.
parent
d01063e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
details.c
programs/oleview/details.c
+7
-7
main.h
programs/oleview/main.h
+0
-1
tree.c
programs/oleview/tree.c
+8
-8
No files found.
programs/oleview/details.c
View file @
4964c1e9
...
...
@@ -59,7 +59,7 @@ void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL addings)
if
(
retEnum
!=
ERROR_SUCCESS
)
{
if
(
!
i
&&
strlenW
(
wszKeyName
)
>
1
)
if
(
!
i
&&
l
strlenW
(
wszKeyName
)
>
1
)
{
tvis
.
item
.
pszText
=
(
LPWSTR
)
wszKeyName
;
addPlace
=
TreeView_InsertItem
(
details
.
hReg
,
&
tvis
);
...
...
@@ -75,8 +75,8 @@ void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL addings)
for
(
j
=
0
;
j
<
MAX_LOAD_STRING
/
3
-
1
;
j
++
)
wsprintfW
(
&
wszBuf
[
3
*
j
],
wszBinary
,
(
int
)((
unsigned
char
)
wszData
[
j
]));
wszBuf
[(
lenData
*
3
>=
MAX_LOAD_STRING
?
MAX_LOAD_STRING
-
1
:
lenData
*
3
)]
=
'\0'
;
strcpyW
(
wszData
,
wszBuf
);
strcpyW
(
&
wszData
[
MAX_LOAD_STRING
-
5
],
wszDots
);
l
strcpyW
(
wszData
,
wszBuf
);
l
strcpyW
(
&
wszData
[
MAX_LOAD_STRING
-
5
],
wszDots
);
}
if
(
lenName
)
wsprintfW
(
wszTree
,
wszFormat1
,
wszKeyName
,
wszName
,
wszData
);
...
...
@@ -86,9 +86,9 @@ void CreateRegRec(HKEY hKey, HTREEITEM parent, WCHAR *wszKeyName, BOOL addings)
if
(
addings
&&
!
memcmp
(
wszName
,
wszAppID
,
sizeof
(
WCHAR
[
6
])))
{
strcpyW
(
wszTree
,
wszName
);
l
strcpyW
(
wszTree
,
wszName
);
memmove
(
&
wszData
[
6
],
wszData
,
sizeof
(
WCHAR
[
MAX_LOAD_STRING
-
6
]));
strcpyW
(
wszData
,
wszCLSID
);
l
strcpyW
(
wszData
,
wszCLSID
);
wszData
[
5
]
=
'\\'
;
if
(
RegOpenKey
(
HKEY_CLASSES_ROOT
,
wszData
,
&
hCurKey
)
!=
ERROR_SUCCESS
)
...
...
@@ -229,7 +229,7 @@ void CreateReg(WCHAR *buffer)
return
;
lastLenBuffer
=
lenBuffer
+
1
;
lenBuffer
=
strlenW
(
buffer
);
lenBuffer
=
l
strlenW
(
buffer
);
*
path
=
'\\'
;
path
+=
1
;
...
...
@@ -287,7 +287,7 @@ void RefreshDetails(HTREEITEM item)
if
(
tvi
.
lParam
)
wsprintfW
(
wszStaticText
,
wszFormat
,
tvi
.
pszText
,
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
clsid
);
else
strcpyW
(
wszStaticText
,
tvi
.
pszText
);
else
l
strcpyW
(
wszStaticText
,
tvi
.
pszText
);
SetWindowText
(
details
.
hStatic
,
wszStaticText
);
...
...
programs/oleview/main.h
View file @
4964c1e9
...
...
@@ -24,7 +24,6 @@
#include <winreg.h>
#include <commctrl.h>
#include <unknwn.h>
#include <wine/unicode.h>
#include "resource.h"
...
...
programs/oleview/tree.c
View file @
4964c1e9
...
...
@@ -44,8 +44,8 @@ LPARAM CreateITEM_INFO(INT flag, const WCHAR *info, const WCHAR *clsid)
memset
(
reg
,
0
,
sizeof
(
ITEM_INFO
));
reg
->
cFlag
=
flag
;
strcpyW
(
reg
->
info
,
info
);
if
(
clsid
)
strcpyW
(
reg
->
clsid
,
clsid
);
l
strcpyW
(
reg
->
info
,
info
);
if
(
clsid
)
l
strcpyW
(
reg
->
clsid
,
clsid
);
return
(
LPARAM
)
reg
;
}
...
...
@@ -116,7 +116,7 @@ void CreateInst(HTREEITEM item)
LoadString
(
globals
.
hMainInst
,
IDS_ERROR_UNKN
,
wszFlagName
,
MAX_LOAD_STRING
);
}
wsprintfW
(
&
wszMessage
[
strlenW
(
wszMessage
)],
wszFormat
,
wsprintfW
(
&
wszMessage
[
l
strlenW
(
wszMessage
)],
wszFormat
,
wszFlagName
,
(
unsigned
)
hRes
);
MessageBox
(
globals
.
hMainWnd
,
wszMessage
,
wszTitle
,
MB_OK
|
MB_ICONEXCLAMATION
);
return
;
...
...
@@ -151,8 +151,8 @@ void CreateInst(HTREEITEM item)
{
IUnknown_Release
(
unk
);
strcpyW
(
wszRegPath
,
wszInterface
);
strcpyW
(
&
wszRegPath
[
strlenW
(
wszRegPath
)],
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
clsid
);
l
strcpyW
(
wszRegPath
,
wszInterface
);
lstrcpyW
(
&
wszRegPath
[
l
strlenW
(
wszRegPath
)],
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
clsid
);
tvis
.
item
.
lParam
=
CreateITEM_INFO
(
REGTOP
|
INTERFACE
|
REGPATH
,
wszRegPath
,
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
clsid
);
SendMessage
(
globals
.
hTree
,
TVM_INSERTITEM
,
0
,
(
LPARAM
)
&
tvis
);
...
...
@@ -216,7 +216,7 @@ BOOL CreateRegPath(HTREEITEM item, WCHAR *buffer, int bufSize)
if
(
tvi
.
lParam
&&
(((
ITEM_INFO
*
)
tvi
.
lParam
)
->
cFlag
&
(
REGPATH
|
REGTOP
)))
{
bufLen
=
strlenW
(((
ITEM_INFO
*
)
tvi
.
lParam
)
->
info
);
bufLen
=
l
strlenW
(((
ITEM_INFO
*
)
tvi
.
lParam
)
->
info
);
memmove
(
&
buffer
[
bufLen
],
buffer
,
sizeof
(
WCHAR
[
bufSize
-
bufLen
]));
memcpy
(
buffer
,
((
ITEM_INFO
*
)
tvi
.
lParam
)
->
info
,
sizeof
(
WCHAR
[
bufLen
]));
}
...
...
@@ -295,7 +295,7 @@ void AddCOMandAll(void)
tvi
.
hItem
=
curSearch
;
SendMessage
(
globals
.
hTree
,
TVM_GETITEM
,
0
,
(
LPARAM
)
&
tvi
);
if
(
tvi
.
lParam
&&
!
strcmpW
(((
ITEM_INFO
*
)
tvi
.
lParam
)
->
info
,
wszComp
))
if
(
tvi
.
lParam
&&
!
l
strcmpW
(((
ITEM_INFO
*
)
tvi
.
lParam
)
->
info
,
wszComp
))
{
tvis
.
hParent
=
curSearch
;
...
...
@@ -403,7 +403,7 @@ void AddTypeLib(void)
LoadString
(
globals
.
hMainInst
,
IDS_TL_VER
,
wszVer
,
sizeof
(
WCHAR
[
MAX_LOAD_STRING
]));
wsprintfW
(
&
buffer
[
strlenW
(
buffer
)],
wszFormat
,
wszVer
,
valName
);
wsprintfW
(
&
buffer
[
l
strlenW
(
buffer
)],
wszFormat
,
wszVer
,
valName
);
tvis
.
item
.
pszText
=
buffer
;
}
else
tvis
.
item
.
pszText
=
valName
;
...
...
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