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
ba093c6d
Commit
ba093c6d
authored
Sep 02, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix some references to TCHARs.
parent
501b1e0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
childwnd.c
programs/regedit/childwnd.c
+2
-2
edit.c
programs/regedit/edit.c
+1
-1
No files found.
programs/regedit/childwnd.c
View file @
ba093c6d
...
@@ -123,7 +123,7 @@ static LPWSTR CombinePaths(LPCWSTR pPaths[], int nPaths) {
...
@@ -123,7 +123,7 @@ static LPWSTR CombinePaths(LPCWSTR pPaths[], int nPaths) {
if
(
!*
combined
)
if
(
!*
combined
)
lstrcpyW
(
combined
,
pPaths
[
i
]);
lstrcpyW
(
combined
,
pPaths
[
i
]);
else
{
else
{
combined
[
pos
++
]
=
(
TCHAR
)
'\\'
;
combined
[
pos
++
]
=
'\\'
;
lstrcpyW
(
combined
+
pos
,
pPaths
[
i
]);
lstrcpyW
(
combined
+
pos
,
pPaths
[
i
]);
}
}
pos
+=
llen
;
pos
+=
llen
;
...
@@ -144,7 +144,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
...
@@ -144,7 +144,7 @@ static LPWSTR GetPathRoot(HWND hwndTV, HTREEITEM hItem, BOOL bFull) {
if
(
hRootKey
)
if
(
hRootKey
)
parts
[
1
]
=
GetRootKeyNameW
(
hRootKey
);
parts
[
1
]
=
GetRootKeyNameW
(
hRootKey
);
if
(
bFull
)
{
if
(
bFull
)
{
DWORD
dwSize
=
sizeof
(
text
)
/
sizeof
(
T
CHAR
);
DWORD
dwSize
=
sizeof
(
text
)
/
sizeof
(
W
CHAR
);
GetComputerNameW
(
text
,
&
dwSize
);
GetComputerNameW
(
text
,
&
dwSize
);
parts
[
0
]
=
text
;
parts
[
0
]
=
text
;
}
}
...
...
programs/regedit/edit.c
View file @
ba093c6d
...
@@ -379,7 +379,7 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
...
@@ -379,7 +379,7 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
HeapFree
(
GetProcessHeap
(),
0
,
stringValueData
);
HeapFree
(
GetProcessHeap
(),
0
,
stringValueData
);
stringValueData
=
tmpValueData
;
stringValueData
=
tmpValueData
;
lRet
=
RegSetValueExW
(
hKey
,
valueName
,
0
,
type
,
(
LPBYTE
)
stringValueData
,
j
*
sizeof
(
T
CHAR
));
lRet
=
RegSetValueExW
(
hKey
,
valueName
,
0
,
type
,
(
LPBYTE
)
stringValueData
,
j
*
sizeof
(
W
CHAR
));
if
(
lRet
==
ERROR_SUCCESS
)
result
=
TRUE
;
if
(
lRet
==
ERROR_SUCCESS
)
result
=
TRUE
;
else
error_code_messagebox
(
hwnd
,
lRet
);
else
error_code_messagebox
(
hwnd
,
lRet
);
}
}
...
...
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