Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1c582d2a
Commit
1c582d2a
authored
Dec 03, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't fill a string with potential garbage.
parent
eaee84f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
progman_dde.c
dlls/shell32/tests/progman_dde.c
+8
-8
No files found.
dlls/shell32/tests/progman_dde.c
View file @
1c582d2a
...
...
@@ -120,6 +120,14 @@ static void init_strings(void)
LONG
res
;
/* Older Win9x and NT4 */
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
Shell Folders"
,
&
key
);
size
=
sizeof
(
Programs
);
RegQueryValueExA
(
key
,
"Programs"
,
NULL
,
NULL
,
(
LPBYTE
)
&
Programs
,
&
size
);
size
=
sizeof
(
startup
);
RegQueryValueExA
(
key
,
"Startup"
,
NULL
,
NULL
,
(
LPBYTE
)
&
startup
,
&
size
);
lstrcpyA
(
Startup
,
(
strrchr
(
startup
,
'\\'
)
+
1
));
RegCloseKey
(
key
);
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
Shell Folders"
,
&
key
);
size
=
sizeof
(
CommonPrograms
);
res
=
RegQueryValueExA
(
key
,
"Common Programs"
,
NULL
,
NULL
,
(
LPBYTE
)
&
CommonPrograms
,
&
size
);
...
...
@@ -129,14 +137,6 @@ static void init_strings(void)
/* Win9x */
lstrcpyA
(
CommonPrograms
,
Programs
);
}
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Explorer
\\
Shell Folders"
,
&
key
);
size
=
sizeof
(
Programs
);
RegQueryValueExA
(
key
,
"Programs"
,
NULL
,
NULL
,
(
LPBYTE
)
&
Programs
,
&
size
);
size
=
sizeof
(
startup
);
RegQueryValueExA
(
key
,
"Startup"
,
NULL
,
NULL
,
(
LPBYTE
)
&
startup
,
&
size
);
lstrcpyA
(
Startup
,
(
strrchr
(
startup
,
'\\'
)
+
1
));
RegCloseKey
(
key
);
}
memset
(
&
cs
,
0
,
sizeof
(
cs
));
...
...
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