Skip to content

Commit 5223198

Browse files
authored
Check for both CONST and _DATA for string inlining
This should allow string inlining for different versions of Visual Studio that name the segment differently.
1 parent a6e1927 commit 5223198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

masm_shc/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ bool process_file(t_params &params)
154154
if (seg_name == "pdata" || seg_name == "xdata") {
155155
in_skipped = true;
156156
}
157-
if (seg_name == "_DATA") {
157+
if (seg_name == "CONST" || seg_name == "_DATA") {
158158
in_const = true;
159159
}
160160
if (tokens[1] == "ENDS" && tokens[0] == seg_name) {

0 commit comments

Comments
 (0)