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
806be361
Commit
806be361
authored
May 20, 2005
by
Juan Lang
Committed by
Alexandre Julliard
May 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn handled errors from ERRs to WARNs or TRACEs.
parent
f23e8fec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
table.c
dlls/msi/table.c
+21
-21
No files found.
dlls/msi/table.c
View file @
806be361
...
...
@@ -229,13 +229,13 @@ static UINT read_stream_data( IStorage *stg, LPCWSTR stname,
r
=
IStream_Stat
(
stm
,
&
stat
,
STATFLAG_NONAME
);
if
(
FAILED
(
r
)
)
{
ERR
(
"open stream failed r = %08lx!
\n
"
,
r
);
WARN
(
"open stream failed r = %08lx!
\n
"
,
r
);
goto
end
;
}
if
(
stat
.
cbSize
.
QuadPart
>>
32
)
{
ERR
(
"Too big!
\n
"
);
WARN
(
"Too big!
\n
"
);
goto
end
;
}
...
...
@@ -243,7 +243,7 @@ static UINT read_stream_data( IStorage *stg, LPCWSTR stname,
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
if
(
!
data
)
{
ERR
(
"couldn't allocate memory r=%08lx!
\n
"
,
r
);
WARN
(
"couldn't allocate memory r=%08lx!
\n
"
,
r
);
ret
=
ERROR_NOT_ENOUGH_MEMORY
;
goto
end
;
}
...
...
@@ -252,7 +252,7 @@ static UINT read_stream_data( IStorage *stg, LPCWSTR stname,
if
(
FAILED
(
r
)
||
(
count
!=
sz
)
)
{
HeapFree
(
GetProcessHeap
(),
0
,
data
);
ERR
(
"read stream failed r = %08lx!
\n
"
,
r
);
WARN
(
"read stream failed r = %08lx!
\n
"
,
r
);
goto
end
;
}
...
...
@@ -303,13 +303,13 @@ UINT read_raw_stream_data( MSIDATABASE *db, LPCWSTR stname,
r
=
IStream_Stat
(
stm
,
&
stat
,
STATFLAG_NONAME
);
if
(
FAILED
(
r
)
)
{
ERR
(
"open stream failed r = %08lx!
\n
"
,
r
);
WARN
(
"open stream failed r = %08lx!
\n
"
,
r
);
goto
end
;
}
if
(
stat
.
cbSize
.
QuadPart
>>
32
)
{
ERR
(
"Too big!
\n
"
);
WARN
(
"Too big!
\n
"
);
goto
end
;
}
...
...
@@ -317,7 +317,7 @@ UINT read_raw_stream_data( MSIDATABASE *db, LPCWSTR stname,
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
if
(
!
data
)
{
ERR
(
"couldn't allocate memory r=%08lx!
\n
"
,
r
);
WARN
(
"couldn't allocate memory r=%08lx!
\n
"
,
r
);
ret
=
ERROR_NOT_ENOUGH_MEMORY
;
goto
end
;
}
...
...
@@ -326,7 +326,7 @@ UINT read_raw_stream_data( MSIDATABASE *db, LPCWSTR stname,
if
(
FAILED
(
r
)
||
(
count
!=
sz
)
)
{
HeapFree
(
GetProcessHeap
(),
0
,
data
);
ERR
(
"read stream failed r = %08lx!
\n
"
,
r
);
WARN
(
"read stream failed r = %08lx!
\n
"
,
r
);
goto
end
;
}
...
...
@@ -362,7 +362,7 @@ static UINT write_stream_data( IStorage *stg, LPCWSTR stname,
HeapFree
(
GetProcessHeap
(),
0
,
encname
);
if
(
FAILED
(
r
)
)
{
ERR
(
"open stream failed r = %08lx
\n
"
,
r
);
WARN
(
"open stream failed r = %08lx
\n
"
,
r
);
return
ret
;
}
...
...
@@ -370,7 +370,7 @@ static UINT write_stream_data( IStorage *stg, LPCWSTR stname,
r
=
IStream_SetSize
(
stm
,
size
);
if
(
FAILED
(
r
)
)
{
ERR
(
"Failed to SetSize
\n
"
);
WARN
(
"Failed to SetSize
\n
"
);
goto
end
;
}
...
...
@@ -378,14 +378,14 @@ static UINT write_stream_data( IStorage *stg, LPCWSTR stname,
r
=
IStream_Seek
(
stm
,
pos
,
STREAM_SEEK_SET
,
NULL
);
if
(
FAILED
(
r
)
)
{
ERR
(
"Failed to Seek
\n
"
);
WARN
(
"Failed to Seek
\n
"
);
goto
end
;
}
r
=
IStream_Write
(
stm
,
data
,
sz
,
&
count
);
if
(
FAILED
(
r
)
||
(
count
!=
sz
)
)
{
ERR
(
"Failed to Write
\n
"
);
WARN
(
"Failed to Write
\n
"
);
goto
end
;
}
...
...
@@ -436,7 +436,7 @@ UINT read_table_from_storage( MSIDATABASE *db, LPCWSTR name, MSITABLE **ptable)
if
(
rawsize
%
row_size
)
{
ERR
(
"Table size is invalid %d/%d
\n
"
,
rawsize
,
row_size
);
WARN
(
"Table size is invalid %d/%d
\n
"
,
rawsize
,
row_size
);
return
ERROR_FUNCTION_FAILED
;
}
...
...
@@ -771,13 +771,13 @@ UINT save_string_table( MSIDATABASE *db )
pool
=
HeapAlloc
(
GetProcessHeap
(),
0
,
poolsize
);
if
(
!
pool
)
{
ERR
(
"Failed to alloc pool %d bytes
\n
"
,
poolsize
);
WARN
(
"Failed to alloc pool %d bytes
\n
"
,
poolsize
);
goto
err
;
}
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
datasize
);
if
(
!
data
)
{
ERR
(
"Failed to alloc data %d bytes
\n
"
,
poolsize
);
WARN
(
"Failed to alloc data %d bytes
\n
"
,
poolsize
);
goto
err
;
}
...
...
@@ -921,7 +921,7 @@ static UINT get_tablecolumns( MSIDATABASE *db,
r
=
get_table
(
db
,
szColumns
,
&
table
);
if
(
r
!=
ERROR_SUCCESS
)
{
ERR
(
"table %s not available
\n
"
,
debugstr_w
(
szColumns
));
WARN
(
"table %s not available
\n
"
,
debugstr_w
(
szColumns
));
return
r
;
}
...
...
@@ -930,7 +930,7 @@ static UINT get_tablecolumns( MSIDATABASE *db,
if
(
r
!=
ERROR_SUCCESS
)
{
release_table
(
db
,
table
);
ERR
(
"Couldn't find id for %s
\n
"
,
debugstr_w
(
szTableName
));
WARN
(
"Couldn't find id for %s
\n
"
,
debugstr_w
(
szTableName
));
return
r
;
}
...
...
@@ -999,7 +999,7 @@ BOOL TABLE_Exists( MSIDATABASE *db, LPWSTR name )
r
=
get_table
(
db
,
szTables
,
&
table
);
if
(
r
!=
ERROR_SUCCESS
)
{
ERR
(
"table %s not available
\n
"
,
debugstr_w
(
szTables
));
TRACE
(
"table %s not available
\n
"
,
debugstr_w
(
szTables
));
return
FALSE
;
}
...
...
@@ -1014,7 +1014,7 @@ BOOL TABLE_Exists( MSIDATABASE *db, LPWSTR name )
if
(
i
!=
count
)
return
TRUE
;
ERR
(
"Searched %d tables, but %d was not found
\n
"
,
count
,
table_id
);
TRACE
(
"Searched %d tables, but %d was not found
\n
"
,
count
,
table_id
);
return
FALSE
;
}
...
...
@@ -1395,7 +1395,7 @@ UINT MSI_CommitTables( MSIDATABASE *db )
r
=
save_string_table
(
db
);
if
(
r
!=
ERROR_SUCCESS
)
{
ERR
(
"failed to save string table r=%08x
\n
"
,
r
);
WARN
(
"failed to save string table r=%08x
\n
"
,
r
);
return
r
;
}
...
...
@@ -1404,7 +1404,7 @@ UINT MSI_CommitTables( MSIDATABASE *db )
r
=
save_table
(
db
,
table
);
if
(
r
!=
ERROR_SUCCESS
)
{
ERR
(
"failed to save table %s (r=%08x)
\n
"
,
WARN
(
"failed to save table %s (r=%08x)
\n
"
,
debugstr_w
(
table
->
name
),
r
);
return
r
;
}
...
...
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