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
3d9fb739
Commit
3d9fb739
authored
May 28, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
May 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that the size of the buffer passed to RegSetValueExW is in
bytes not WCHARs.
parent
c9860a50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
shellpath.c
dlls/shell32/shellpath.c
+4
-2
No files found.
dlls/shell32/shellpath.c
View file @
3d9fb739
...
...
@@ -1115,7 +1115,8 @@ HRESULT WINAPI SHGetFolderPathW(
strcpyW
(
pszPath
+
3
,
szDefaultPath
);
}
dwType
=
REG_SZ
;
RegSetValueExW
(
hKey
,
szValueName
,
0
,
REG_SZ
,(
LPBYTE
)
pszPath
,
strlenW
(
pszPath
)
+
1
);
RegSetValueExW
(
hKey
,
szValueName
,
0
,
REG_SZ
,(
LPBYTE
)
pszPath
,
(
strlenW
(
pszPath
)
+
1
)
*
sizeof
(
WCHAR
));
}
}
RegCloseKey
(
hKey
);
...
...
@@ -1151,7 +1152,8 @@ HRESULT WINAPI SHGetFolderPathW(
strcpyW
(
pszPath
+
3
,
szDefaultPath
);
}
dwType
=
REG_SZ
;
RegSetValueExW
(
hKey
,
szValueName
,
0
,
REG_SZ
,(
LPBYTE
)
pszPath
,
strlenW
(
pszPath
)
+
1
);
RegSetValueExW
(
hKey
,
szValueName
,
0
,
REG_SZ
,(
LPBYTE
)
pszPath
,
(
strlenW
(
pszPath
)
+
1
)
*
sizeof
(
WCHAR
));
}
RegCloseKey
(
hKey
);
}
...
...
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