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
4a5ade0e
Commit
4a5ade0e
authored
Mar 21, 2005
by
Filip Navara
Committed by
Alexandre Julliard
Mar 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify correct buffer size in GetPrivateProfileStringW calls.
parent
627d2fa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
driver.c
dlls/winmm/driver.c
+1
-1
mci.c
dlls/winmm/mci.c
+2
-2
No files found.
dlls/winmm/driver.c
View file @
4a5ade0e
...
...
@@ -226,7 +226,7 @@ BOOL DRIVER_GetLibName(LPCWSTR keyName, LPCWSTR sectName, LPWSTR buf, int sz)
if
(
lRet
==
ERROR_SUCCESS
)
return
TRUE
;
/* default to system.ini if we can't find it in the registry,
* to support native installations where system.ini is still used */
return
GetPrivateProfileStringW
(
sectName
,
keyName
,
&
wsznull
,
buf
,
sz
,
wszSystemIni
);
return
GetPrivateProfileStringW
(
sectName
,
keyName
,
&
wsznull
,
buf
,
sz
/
sizeof
(
WCHAR
)
,
wszSystemIni
);
}
/**************************************************************************
...
...
dlls/winmm/mci.c
View file @
4a5ade0e
...
...
@@ -1844,7 +1844,7 @@ static DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSW lpParm
RegQueryInfoKeyW
(
hKey
,
0
,
0
,
0
,
&
cnt
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
RegCloseKey
(
hKey
);
}
if
(
GetPrivateProfileStringW
(
wszMci
,
0
,
wszNull
,
buf
,
sizeof
(
buf
),
wszSystemIni
))
if
(
GetPrivateProfileStringW
(
wszMci
,
0
,
wszNull
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
])
,
wszSystemIni
))
for
(
s
=
buf
;
*
s
;
s
+=
strlenW
(
s
)
+
1
)
cnt
++
;
}
}
else
{
...
...
@@ -1896,7 +1896,7 @@ static DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSW lpParm
RegCloseKey
(
hKey
);
}
if
(
!
s
)
{
if
(
GetPrivateProfileStringW
(
wszMci
,
0
,
wszNull
,
buf
,
sizeof
(
buf
),
wszSystemIni
))
{
if
(
GetPrivateProfileStringW
(
wszMci
,
0
,
wszNull
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
])
,
wszSystemIni
))
{
for
(
p
=
buf
;
*
p
;
p
+=
strlenW
(
p
)
+
1
,
cnt
++
)
{
TRACE
(
"%ld: %s
\n
"
,
cnt
,
debugstr_w
(
p
));
if
(
cnt
==
lpParms
->
dwNumber
-
1
)
{
...
...
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