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
d27b8c96
Commit
d27b8c96
authored
Jul 02, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid accessing uninitialized variable in TASK_Create (spotted by
Robert Shearman).
parent
5054045f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
task.c
loader/task.c
+3
-6
No files found.
loader/task.c
View file @
d27b8c96
...
...
@@ -258,7 +258,6 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, TEB *teb, LPCSTR cm
{
HTASK16
hTask
;
TDB
*
pTask
;
char
name
[
10
];
FARPROC16
proc
;
HMODULE16
hModule
=
pModule
?
pModule
->
self
:
0
;
...
...
@@ -302,8 +301,10 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, TEB *teb, LPCSTR cm
if
(
hModule
)
{
char
name
[
10
];
GetModuleName16
(
hModule
,
name
,
sizeof
(
name
)
);
strncpy
(
pTask
->
module_name
,
name
,
sizeof
(
pTask
->
module_name
)
);
pTask
->
compat_flags
=
GetProfileIntA
(
"Compatibility"
,
name
,
0
);
}
/* Allocate a selector for the PDB */
...
...
@@ -345,11 +346,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, TEB *teb, LPCSTR cm
memcpy
(
pTask
->
pdb
.
cmdLine
+
1
,
cmdline
,
len
);
/* pTask->pdb.cmdLine[len+1] = 0; */
TRACE
(
"module='%s' cmdline='%.*s' task=%04x
\n
"
,
name
,
len
,
cmdline
,
hTask
);
/* Get the compatibility flags */
pTask
->
compat_flags
=
GetProfileIntA
(
"Compatibility"
,
name
,
0
);
TRACE
(
"cmdline='%.*s' task=%04x
\n
"
,
len
,
cmdline
,
hTask
);
/* Allocate a code segment alias for the TDB */
...
...
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