Skip to content

Commit f9d1ffa

Browse files
committed
look up lowercased file paths in pdb disqualification path as well as normally cased paths
1 parent cf85652 commit f9d1ffa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pdb/pdb_parse.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,11 @@ pdb_has_file_ref(String8 msf_data, String8List file_list, MSF_RawStreamTable *st
11431143
Temp temp = temp_begin(scratch.arena);
11441144
String8 path = file_n->string;
11451145
String8 path_pdbstyle = path_convert_slashes(temp.arena, path, PathStyle_WindowsAbsolute);
1146-
U32 off = pdb_strtbl_off_from_string(strtbl, path_pdbstyle);
1146+
String8 path_pdbstyle_lower = lower_from_str8(temp.arena, path_pdbstyle);
1147+
U32 off1 = pdb_strtbl_off_from_string(strtbl, path_pdbstyle);
1148+
U32 off2 = pdb_strtbl_off_from_string(strtbl, path_pdbstyle_lower);
11471149
temp_end(temp);
1148-
if(off != max_U32)
1150+
if(off1 != max_U32 || off2 != max_U32)
11491151
{
11501152
has_ref = 1;
11511153
break;

0 commit comments

Comments
 (0)