DXGL r928 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r927‎ | r928 | r929 >
Date:22:34, 14 May 2019
Author:admin
Status:new
Tags:
Comment:
Fix signing the installer.
Modified paths:
  • /buildtool/buildtool.c (modified) (history)

Diff [purge]

Index: buildtool/buildtool.c
@@ -169,12 +169,6 @@
170170 {
171171 if (strstr(buffer, "//#define DXGLBETA")) strcpy(buffer, "#define DXGLBETA");
172172 }
173 - findptr = strstr(buffer, "$SIGNTOOL");
174 - if (findptr)
175 - {
176 - if (nosign) strncpy(findptr, "0", 10);
177 - else strncpy(findptr, "1", 10);
178 - }
179173 fputs(buffer,fileout);
180174 }
181175 fclose(filein);
@@ -240,6 +234,12 @@
241235 #endif
242236 #endif
243237 }
 238+ findptr = strstr(buffer, "$SIGNTOOL");
 239+ if (findptr)
 240+ {
 241+ if (nosign) strncpy(findptr, "\"0\"", 10);
 242+ else strncpy(findptr, "\"1\"", 10);
 243+ }
244244 if (DXGLBETA)
245245 {
246246 if(strstr(buffer,";!define _BETA")) strcpy(buffer,"!define _BETA\n");