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
fb3f40b9
Commit
fb3f40b9
authored
Jun 26, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash that occurred when an invalid query string was deleted
twice.
parent
f558741f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
sql.y
dlls/msi/sql.y
+1
-0
where.c
dlls/msi/where.c
+3
-1
No files found.
dlls/msi/sql.y
View file @
fb3f40b9
...
@@ -767,6 +767,7 @@ UINT MSI_ParseSQL( MSIDATABASE *db, LPCWSTR command, MSIVIEW **phview )
...
@@ -767,6 +767,7 @@ UINT MSI_ParseSQL( MSIDATABASE *db, LPCWSTR command, MSIVIEW **phview )
{
{
if( *sql.view )
if( *sql.view )
(*sql.view)->ops->delete( *sql.view );
(*sql.view)->ops->delete( *sql.view );
*sql.view = NULL;
return ERROR_BAD_QUERY_SYNTAX;
return ERROR_BAD_QUERY_SYNTAX;
}
}
...
...
dlls/msi/where.c
View file @
fb3f40b9
...
@@ -295,7 +295,8 @@ static UINT WHERE_delete( struct tagMSIVIEW *view )
...
@@ -295,7 +295,8 @@ static UINT WHERE_delete( struct tagMSIVIEW *view )
wv
->
reorder
=
NULL
;
wv
->
reorder
=
NULL
;
wv
->
row_count
=
0
;
wv
->
row_count
=
0
;
delete_expr
(
wv
->
cond
);
if
(
wv
->
cond
)
delete_expr
(
wv
->
cond
);
HeapFree
(
GetProcessHeap
(),
0
,
wv
);
HeapFree
(
GetProcessHeap
(),
0
,
wv
);
...
@@ -340,6 +341,7 @@ UINT WHERE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table )
...
@@ -340,6 +341,7 @@ UINT WHERE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table )
wv
->
table
=
table
;
wv
->
table
=
table
;
wv
->
row_count
=
0
;
wv
->
row_count
=
0
;
wv
->
reorder
=
NULL
;
wv
->
reorder
=
NULL
;
wv
->
cond
=
NULL
;
*
view
=
(
MSIVIEW
*
)
wv
;
*
view
=
(
MSIVIEW
*
)
wv
;
return
ERROR_SUCCESS
;
return
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