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
3b8929b9
Commit
3b8929b9
authored
Nov 15, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Replace number with a defined value (static buffer size).
parent
3c287f20
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
localmon.c
dlls/localspl/localmon.c
+4
-4
No files found.
dlls/localspl/localmon.c
View file @
3b8929b9
...
...
@@ -83,8 +83,8 @@ static DWORD get_ports_from_reg(DWORD level, LPBYTE pPorts, DWORD cbBuf, LPDWORD
LPWSTR
ptr
;
LPPORT_INFO_2W
out
;
WCHAR
portname
[
MAX_PATH
];
WCHAR
res_PortW
[
32
];
WCHAR
res_MonitorW
[
32
];
WCHAR
res_PortW
[
IDS_LOCALPORT_MAXLEN
];
WCHAR
res_MonitorW
[
IDS_LOCALMONITOR_MAXLEN
];
INT
reslen_PortW
;
INT
reslen_MonitorW
;
DWORD
len
;
...
...
@@ -113,8 +113,8 @@ static DWORD get_ports_from_reg(DWORD level, LPBYTE pPorts, DWORD cbBuf, LPDWORD
}
/* "+1" for '\0' */
reslen_MonitorW
=
LoadStringW
(
LOCALSPL_hInstance
,
IDS_LOCALMONITOR
,
res_MonitorW
,
32
)
+
1
;
reslen_PortW
=
LoadStringW
(
LOCALSPL_hInstance
,
IDS_LOCALPORT
,
res_PortW
,
32
)
+
1
;
reslen_MonitorW
=
LoadStringW
(
LOCALSPL_hInstance
,
IDS_LOCALMONITOR
,
res_MonitorW
,
IDS_LOCALMONITOR_MAXLEN
)
+
1
;
reslen_PortW
=
LoadStringW
(
LOCALSPL_hInstance
,
IDS_LOCALPORT
,
res_PortW
,
IDS_LOCALPORT_MAXLEN
)
+
1
;
res
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
WinNT_CV_PortsW
,
&
hroot
);
if
(
res
==
ERROR_SUCCESS
)
{
...
...
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