Commit b58094f7 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

winedump: Fix potential null-pointer dereference (cppcheck).

parent fe2d4509
......@@ -215,7 +215,8 @@ static void *read_string_table(struct pdb_reader* reader)
stream_idx = get_stream_by_name(reader, "/names");
if (stream_idx == -1) return NULL;
ret = reader->read_file(reader, stream_idx);
if (ret && *(const DWORD*)ret == 0xeffeeffe) return ret;
if (!ret) return NULL;
if(*(const DWORD*)ret == 0xeffeeffe) return ret;
printf("wrong header %x expecting 0xeffeeffe\n", *(const DWORD*)ret);
free( ret );
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment