Skip to content

Commit

Permalink
Code Style: Ensure that each operation argument is separated by a comma
Browse files Browse the repository at this point in the history
Igor Pro does allow omitting the comma between the first and second
argument of an operation and also allows adding extranous commas before
the first argument.

This isn't considered as good coding style [1].

[1]: byte-physics/igor-pro-coding-conventions#33
  • Loading branch information
Garados007 committed Jul 28, 2023
1 parent ca807f0 commit 82967e0
Show file tree
Hide file tree
Showing 44 changed files with 812 additions and 812 deletions.
16 changes: 8 additions & 8 deletions Packages/MIES/ACL_TabUtilities.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Function ACL_SetControlDisableStatus(panel, currentControl, tabControlName, newT
ControlInfo/W=$(panel) $(currentControl)
// tabs are a special case since we want to change the value, not the disable status
if (abs(V_flag == 8) && cmpstr(currentControl, tabControlName) == 0) // this control is a tab
TabControl $(currentControl) win=$(panel), value=(newTabNum)
TabControl $(currentControl), win=$(panel), value=(newTabNum)
elseif (abs(V_flag) > 0) // the control exists--this should always be positive unless it's a window
// see if this control is "controlled" by the current tab control
// and if so, change it's disable status. If it's not controlled by the current
Expand Down Expand Up @@ -107,22 +107,22 @@ Function ACL_SetControlDisableStatus(panel, currentControl, tabControlName, newT
default:
controllingTab = GetUserData(potentialWindowName, "", "tabcontrol")
tabNumber = str2num(GetUserData(potentialWindowName, "", "tabnum"))
GetWindow $(potentialWindowName) hide
GetWindow $(potentialWindowName), hide
windowHide = V_Value
if (cmpstr(tabControlName, controllingTab) == 0)
if (numtype(tabNumber) == 0) // tabnumber userdata is defined
SetWindow $(potentialWindowName) hide=((tabNumber == newTabNum) ? (windowHide & ~0x1) : (windowHide | 0x1)), needUpdate=1 // clear the hide bit/set the hide bit and force update of window
SetWindow $(potentialWindowName), hide=((tabNumber == newTabNum) ? (windowHide & ~0x1) : (windowHide | 0x1)), needUpdate=1 // clear the hide bit/set the hide bit and force update of window
else // display the control since it's controlled by this tab but should be visible whenever the controlling tab control is visible
SetWindow $(potentialWindowName) hide=(windowHide & ~0x1), needUpdate=1 // clear the hide bit and force update of window
SetWindow $(potentialWindowName), hide=(windowHide & ~0x1), needUpdate=1 // clear the hide bit and force update of window
endif
elseif (cmpstr(controllingTab, "") != 0)
// determine status of controlling tab
ControlInfo/W=$(panel) $(controllingTab)
if (abs(V_Flag == 8)) // this is really a tab
if (V_disable & 0x1) // if hide bit is set
SetWindow $(potentialWindowName) hide=(windowHide | 0x1), needUpdate=1 // set the hide bit and force update of window
SetWindow $(potentialWindowName), hide=(windowHide | 0x1), needUpdate=1 // set the hide bit and force update of window
else
SetWindow $(potentialWindowName) hide=((tabNumber == V_Value) ? (windowHide & ~0x1) : (windowHide | 0x1)), needUpdate=1 // clear the hide bit/set the hide bit and force update of window
SetWindow $(potentialWindowName), hide=((tabNumber == V_Value) ? (windowHide & ~0x1) : (windowHide | 0x1)), needUpdate=1 // clear the hide bit/set the hide bit and force update of window
endif
endif
EndIf
Expand Down Expand Up @@ -214,7 +214,7 @@ Function ACL_DisplayTab(tca): TabControl
// the tab itself has already changed, so we have to reset the selected tab to the value
// stored in the tab controls userdata(currenttab)
Variable originalTab = str2num(GetUserData(panel, tabControlName, "currenttab"))
TabControl $(tabControlName) win=$(panel), value=originalTab // reset selected tab
TabControl $(tabControlName), win=$(panel), value=originalTab // reset selected tab
return 1
endif
EndIf
Expand Down Expand Up @@ -251,7 +251,7 @@ Function ACL_DisplayTab(tca): TabControl
EndFor
// write the value of the currently displayed tab into the userdata(currenttab) of tab control
if (newTabNum >= 0)
TabControl $(tabControlName) win=$(panel), userdata(currenttab)=num2str(newTabNum)
TabControl $(tabControlName), win=$(panel), userdata(currenttab)=num2str(newTabNum)
EndIf

// This function supports setting a separate hook function for a tab control that will be executed after the
Expand Down
12 changes: 6 additions & 6 deletions Packages/MIES/ACL_UserdataEditor.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Function PopMenuSelectPanel(pa) : PopupMenuControl
ACL_SetupListControlWaves(pa.win, pa.popStr)

// put value of selected panel in the (unnamed) userdata of the window that contains the PopMenu box
SetWindow $(pa.win) userdata=pa.popStr
SetWindow $(pa.win), userdata=pa.popStr

break
endswitch
Expand Down Expand Up @@ -457,7 +457,7 @@ Function PopMenuSelectControlType(pa) : PopupMenuControl

// put V_flag type of newly selected control type into userdata of this popup control
Variable controlType = str2num(controlTypes[pa.popNum][1])
PopupMenu $(pa.ctrlName) win=$(pa.win), userdata(controlType) = num2str(controlType)
PopupMenu $(pa.ctrlName), win=$(pa.win), userdata(controlType) = num2str(controlType)

// simulate a click on the Select Panel popmenu that will force a refresh of the list of controls

Expand Down Expand Up @@ -515,7 +515,7 @@ Function ListBoxPanelControls(lba) : ListBoxControl
if (numtype(lastSortCol) != 0)
lastSortCol = -1
endif
ListBox $(lba.ctrlName) win=$(lba.win), userdata(sortCol) = num2str(lba.col) // indicate which column to sort by
ListBox $(lba.ctrlName), win=$(lba.win), userdata(sortCol) = num2str(lba.col) // indicate which column to sort by

// now, toggle the ascending/descending sort flag for this column (but only if this column was already selected)
Variable sortOrder = str2num(GetUserData(lba.win, lba.ctrlName, "order"+num2str(lba.col)))
Expand All @@ -524,7 +524,7 @@ Function ListBoxPanelControls(lba) : ListBoxControl
elseif (lastSortCol == lba.col)
sortOrder = !sortOrder
endif
ListBox $(lba.ctrlName) win=$(lba.win), userdata($("order" + num2str(lba.col)))=num2str(sortOrder)
ListBox $(lba.ctrlName), win=$(lba.win), userdata($("order" + num2str(lba.col)))=num2str(sortOrder)

// now change the dimension labels of the list box text wave so that the column controlling the
// sort has the up or down arrow icon on it, depending on the order of the sort
Expand Down Expand Up @@ -674,7 +674,7 @@ Function ACL_FitListToWindow(win, ctrlName)
// modified from original Wavemetrics function
String win, ctrlName

GetWindow $win wsize
GetWindow $win, wsize
Variable winHeight= V_bottom-V_top // points
Variable winWidth = V_right-V_left
winHeight *= ScreenResolution/72 // points to pixels
Expand Down Expand Up @@ -716,7 +716,7 @@ Function ACL_MinWindowSize(winName,minwidth,minheight)
String winName
Variable minwidth,minheight

GetWindow $winName wsize
GetWindow $winName, wsize
Variable width= max(V_right-V_left,minwidth)
Variable height= max(V_bottom-V_top,minheight)
MoveWindow/W=$winName V_left, V_top, V_left+width, V_top+height
Expand Down
2 changes: 1 addition & 1 deletion Packages/MIES/MIES_AmplifierInteraction.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ Function AI_OpenMCCs(ampSerialNumList, [ampTitleList])
endfor

if(failedToOpenCount > 0)
printf "%g MCCs failed to open on attempt count %g\r" failedTOopenCount, j
printf "%g MCCs failed to open on attempt count %g\r", failedTOopenCount, j
ControlWindowToFront()
endif

Expand Down
14 changes: 7 additions & 7 deletions Packages/MIES/MIES_AnalysisBrowser.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ static Function AB_LoadSweepFromNWBgeneric(h5_groupID, nwbVersion, channelList,
// always fake TTL base wave (bitwise sum of all TTL channels)
wave/Z/I base = sweepDFR:$channelName
if(!WaveExists(base))
Duplicate loaded sweepDFR:$channelName/wave=base
Duplicate loaded, sweepDFR:$channelName/wave=base
base = 0
fakeConfigWave = 1
SetNumberInWaveNote(base, "fake", 1)
Expand Down Expand Up @@ -2285,7 +2285,7 @@ static Function AB_LoadStimsetRAW(expFilePath, stimset, overwrite)
return 1
endif

MoveWave newDFR:$stimset setDFR
MoveWave newDFR:$stimset, setDFR
KillOrMoveToTrash(dfr=newDFR)

return 0
Expand Down Expand Up @@ -2517,7 +2517,7 @@ static Function AB_AddExperimentEntries(string win, WAVE/T entries)

if(FolderExists(entry))
symbPath = GetUniqueSymbolicPath()
NewPath/O/Q/Z $symbPath entry
NewPath/O/Q/Z $symbPath, entry
pxpList = GetAllFilesRecursivelyFromPath(symbPath, extension=".pxp")
uxpList = GetAllFilesRecursivelyFromPath(symbPath, extension=".uxp")
nwbList = GetAllFilesRecursivelyFromPath(symbPath, extension=".nwb")
Expand All @@ -2538,14 +2538,14 @@ static Function AB_AddExperimentEntries(string win, WAVE/T entries)
endif
if(sTime < stopMSTimer(-2) * MILLI_TO_ONE)
sprintf title, "%s, Reading %s", panel, GetFile(fName)
DoWindow/T $panel title
DoWindow/T $panel, title
DoUpdate/W=$panel
sTime = stopMSTimer(-2) * MILLI_TO_ONE + 1
endif
AB_AddFile(fName, entry)
endfor
endfor
DoWindow/T $panel panel
DoWindow/T $panel, panel

AB_ResetListBoxWaves()
End
Expand Down Expand Up @@ -2815,7 +2815,7 @@ Function AB_ButtonProc_OpenFolders(ba) : ButtonControl
else
continue
endif
NewPath/O/Q/Z $symbPath folder
NewPath/O/Q/Z $symbPath, folder
PathInfo/SHOW $symbPath
endif
endfor
Expand Down Expand Up @@ -2914,7 +2914,7 @@ Function AB_ButtonProc_AddFiles(ba) : ButtonControl
endif

symbPath = GetUniqueSymbolicPath()
NewPath/O/Q/Z $symbPath baseFolder
NewPath/O/Q/Z $symbPath, baseFolder

fileFilters = "Data Files (*.pxp,*.nwb,*.uxp):.pxp,.nwb,.uxp;All Files:.*;"
message = "Select data file(s)"
Expand Down
2 changes: 1 addition & 1 deletion Packages/MIES/MIES_AnalysisBrowser_SweepBrowser_Export.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Function SBE_ShowExportPanel(sourceWindow)
endif

ControlUpdate/W=$panel popup_sweep_export_source_graph
PopupMenu popup_sweep_export_source_graph win=$panel, popmatch=GetMainWindow(sourceWindow)
PopupMenu popup_sweep_export_source_graph, win=$panel, popmatch=GetMainWindow(sourceWindow)
End

/// @brief Return a list of possible target graphs for the export panel
Expand Down
4 changes: 2 additions & 2 deletions Packages/MIES/MIES_AnalysisFunctions.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Function Enforce_VC(device, eventType, DAQDataWave, headStage, realDataLength)
variable DAC = AFH_GetDACFromHeadstage(device, headstage)

string stimSetName = AFH_GetStimSetName(device, DAC, CHANNEL_TYPE_DAC)
printf "%s on DAC %d of headstage %d requires voltage clamp mode. Change clamp mode to voltage clamp to allow data acquistion\r" stimSetName, DAC, headStage
printf "%s on DAC %d of headstage %d requires voltage clamp mode. Change clamp mode to voltage clamp to allow data acquistion\r", stimSetName, DAC, headStage
return 1
endif

Expand All @@ -328,7 +328,7 @@ Function Enforce_IC(device, eventType, DAQDataWave, headStage, realDataLength)
if(DAG_GetHeadstageMode(device, headStage) != I_CLAMP_MODE)
variable DAC = AFH_GetDACFromHeadstage(device, headstage)
string stimSetName = AFH_GetStimSetName(device, DAC, CHANNEL_TYPE_DAC)
printf "Stimulus set: %s on DAC: %d of headstage: %d requires current clamp mode. Change clamp mode to current clamp to allow data acquistion\r" stimSetName, DAC, headStage
printf "Stimulus set: %s on DAC: %d of headstage: %d requires current clamp mode. Change clamp mode to current clamp to allow data acquistion\r", stimSetName, DAC, headStage
return 1
endif

Expand Down
16 changes: 8 additions & 8 deletions Packages/MIES/MIES_BackgroundWatchdog.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static Function SetValDisplay(win, control, [var, str, format])
return NaN
endif

ValDisplay $control win=$win, value=#formattedString
ValDisplay $control, win=$win, value=#formattedString
End

static Function/S GetValDisplayAsString(win, control)
Expand Down Expand Up @@ -131,13 +131,13 @@ Function BW_PanelUpdate()
colb = basecol * 0.4
endif
ctrl = base + "_NAME"
TitleBox $ctrl win=$PANEL, pos={0, ypos}, anchor=lc, fixedsize=1, size={6 * XGRID, YGRID}, labelBack=(colr, colg, colb), title=StringByKey("NAME", taskinfo), help={"name of task\rgreen - currently running\rred - stopped"}
TitleBox $ctrl, win=$PANEL, pos={0, ypos}, anchor=lc, fixedsize=1, size={6 * XGRID, YGRID}, labelBack=(colr, colg, colb), title=StringByKey("NAME", taskinfo), help={"name of task\rgreen - currently running\rred - stopped"}
ctrl = base + "_PROCESS"
Button $ctrl win=$PANEL, pos={6 * XGRID, ypos}, size={9 * XGRID, YGRID}, fColor=(colr, colg, colb), title=StringByKey("PROC", taskinfo), proc=BW_ButtonProc_ShowTask, help={"function of task\rpress to open code"}
Button $ctrl, win=$PANEL, pos={6 * XGRID, ypos}, size={9 * XGRID, YGRID}, fColor=(colr, colg, colb), title=StringByKey("PROC", taskinfo), proc=BW_ButtonProc_ShowTask, help={"function of task\rpress to open code"}

state = NumberByKey("PERIOD", taskinfo)
ctrl = base + "_PERIOD"
ValDisplay $ctrl win=$PANEL, format="%1d", pos={3 * xgrid + xoffs, ypos}, size={2.5 * XGRID, YGRID}, title="Period", value= #"0", help={"task is executed every period ticks"}
ValDisplay $ctrl, win=$PANEL, format="%1d", pos={3 * xgrid + xoffs, ypos}, size={2.5 * XGRID, YGRID}, title="Period", value= #"0", help={"task is executed every period ticks"}

SetValDisplay(PANEL, ctrl, var=state)
state = NumberByKey("NEXT", taskinfo)
Expand All @@ -156,7 +156,7 @@ Function BW_PanelUpdate()
colb = basecol
helpstr = "task was last run at <> ticks"
endif
ValDisplay $ctrl win=$PANEL, format="%1d", pos={6 * xgrid + xoffs, ypos},size={3.5 * XGRID, YGRID}, valueBackColor=(colr, colg, colb), title=title,value= #"0", help={helpstr}
ValDisplay $ctrl, win=$PANEL, format="%1d", pos={6 * xgrid + xoffs, ypos},size={3.5 * XGRID, YGRID}, valueBackColor=(colr, colg, colb), title=title,value= #"0", help={helpstr}
SetValDisplay(PANEL, ctrl, var=state)

if(NumberByKey("QUIT", taskinfo))
Expand All @@ -169,7 +169,7 @@ Function BW_PanelUpdate()
colb = basecol * 0.7
endif
ctrl = base + "_QUIT"
Button $ctrl win=$PANEL ,pos={10 * XGRID + XOFFS, ypos}, size={2 * XGRID, YGRID}, fColor=(colr, colg, colb), title="QUIT", proc=BW_ButtonProc_QuitTask, help={"red - task returned nonzero value\rgrey - task returned zero (OK)"}
Button $ctrl, win=$PANEL ,pos={10 * XGRID + XOFFS, ypos}, size={2 * XGRID, YGRID}, fColor=(colr, colg, colb), title="QUIT", proc=BW_ButtonProc_QuitTask, help={"red - task returned nonzero value\rgrey - task returned zero (OK)"}

if(NumberByKey("FUNCERR", taskinfo))
colr = basecol
Expand All @@ -181,9 +181,9 @@ Function BW_PanelUpdate()
colb = basecol * 0.7
endif
ctrl = base + "_ERROR"
TitleBox $ctrl win=$PANEL, anchor=mc, fixedsize=1, pos={12 * XGRID + XOFFS, ypos}, size={2 * XGRID, YGRID}, labelBack=(colr, colg, colb), title="ERROR", help={"red - task function was not or could not be executed\rgrey - task function could be executed"}
TitleBox $ctrl, win=$PANEL, anchor=mc, fixedsize=1, pos={12 * XGRID + XOFFS, ypos}, size={2 * XGRID, YGRID}, labelBack=(colr, colg, colb), title="ERROR", help={"red - task function was not or could not be executed\rgrey - task function could be executed"}
endfor
GetWindow $PANEL wsize
GetWindow $PANEL, wsize
MoveWindow /W=$PANEL V_Left, V_Top, V_Left + 14 * XGRID + XOFFS, V_Top + ypos + YGRID
End

Expand Down
4 changes: 2 additions & 2 deletions Packages/MIES/MIES_Blowout.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static Function BWO_CheckGlobalSettings(device)
// check that data acquisition is not running
NVAR dataAcqRunMode = $GetDataAcqRunMode(device)
if(dataAcqRunMode != DAQ_NOT_RUNNING)
printf "Please terminate ongoing data acquisition on %s \r" device
printf "Please terminate ongoing data acquisition on %s \r", device
return 0
endif
// check that blowout protocol exists
Expand Down Expand Up @@ -209,7 +209,7 @@ static Function BWO_CheckAndClearPipettes(device)
PGC_SetAndActivateControl(device, "setvar_DataAcq_SSPressure", val = 0)

if(TPResults[%ResistanceSteadyState][i] > BWO_MAX_RESISTANCE)
printf "Unable to clear pipette on headstage %d with %g psi\r" i, PressureTracking[i]
printf "Unable to clear pipette on headstage %d with %g psi\r", i, PressureTracking[i]
endif
endfor
End
Expand Down
20 changes: 10 additions & 10 deletions Packages/MIES/MIES_BrowserSettingsPanel.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static Function BSP_UnHideSettingsPanel(mainPanel)

bsPanel = BSP_GetPanel(mainPanel)

SetWindow $bsPanel hide=0, needUpdate=1
SetWindow $bsPanel, hide=0, needUpdate=1
End

/// @brief open bottom Panel
Expand All @@ -130,7 +130,7 @@ static Function BSP_UnHideSweepControls(mainPanel)
scPanel = BSP_GetSweepControlsPanel(mainPanel)
ASSERT(WindowExists(scPanel), "SweepControl panel does not exist")

SetWindow $scPanel hide=0, needUpdate=1
SetWindow $scPanel, hide=0, needUpdate=1
End

/// @brief dynamic settings for bottom panel at initialization
Expand All @@ -154,7 +154,7 @@ static Function BSP_DynamicSweepControls(mainPanel)
EnableControls(scPanel, SWEEPCONTROL_CONTROLS_DATABROWSER)
DisableControls(scPanel, SWEEPCONTROL_CONTROLS_SWEEPBROWSER)
else
PopupMenu popup_SweepControl_Selector win=$scPanel, value= #("SB_GetSweepList(\"" + mainPanel + "\")")
PopupMenu popup_SweepControl_Selector, win=$scPanel, value= #("SB_GetSweepList(\"" + mainPanel + "\")")
SetControlProcedures(scPanel, "popup_SweepControl_Selector;", "SB_PopupMenuSelectSweep")
EnableControls(scPanel, SWEEPCONTROL_CONTROLS_SWEEPBROWSER)
DisableControls(scPanel, SWEEPCONTROL_CONTROLS_DATABROWSER)
Expand Down Expand Up @@ -234,7 +234,7 @@ Function BSP_DynamicStartupSettings(mainPanel)
else
DisableControls(bsPanel, BROWSERSETTINGS_CONTROLS_DATABROWSER)
endif
PopupMenu popup_TimeAlignment_Master win=$bsPanel, value = #("TimeAlignGetAllTraces(\"" + mainPanel + "\")")
PopupMenu popup_TimeAlignment_Master, win=$bsPanel, value = #("TimeAlignGetAllTraces(\"" + mainPanel + "\")")

BSP_InitMainCheckboxes(bsPanel)

Expand Down Expand Up @@ -293,7 +293,7 @@ Function BSP_UnsetDynamicStartupSettings(mainPanel)
ASSERT(WindowExists(bsPanel), "external BrowserSettings panel not found")
SetWindow $bsPanel, userData(panelVersion) = ""
PopupMenu popup_overlaySweeps_select, win=$bsPanel, value=""
PopupMenu popup_TimeAlignment_Master win=$bsPanel, value = ""
PopupMenu popup_TimeAlignment_Master, win=$bsPanel, value = ""
ListBox list_of_ranges, win=$bsPanel, listWave=$"", selWave=$""
ListBox list_of_ranges1, win=$bsPanel, listWave=$"", selWave=$""
ListBox list_dashboard, win=$bsPanel, listWave=$"", colorWave=$"", selWave=$"", helpWave=$""
Expand Down Expand Up @@ -680,7 +680,7 @@ static Function BSP_HidePanel(string win)
currentWindow = GetMainWindow(GetCurrentWindow())

mainPanel = GetMainWindow(win)
SetWindow $win hide=1
SetWindow $win, hide=1

DoWindow/F $currentWindow

Expand Down Expand Up @@ -1077,7 +1077,7 @@ End

Function/S BSP_GetFormulaGraphTitle(string win)

GetWindow $win wtitle
GetWindow $win, wtitle

return SF_PLOT_NAME_TEMPLATE + " from <" + S_Value + ">"
End
Expand Down Expand Up @@ -1581,7 +1581,7 @@ static Function BSP_UnHideSettingsHistory(win)

settingsHistoryPanel = LBV_GetSettingsHistoryPanel(win)
if(WindowExists(settingsHistoryPanel))
SetWindow $settingsHistoryPanel hide=0, needUpdate=1
SetWindow $settingsHistoryPanel, hide=0, needUpdate=1
endif
End

Expand Down Expand Up @@ -1754,7 +1754,7 @@ Function BSP_AddTracesForEpochs(string win)
ModifyGraph/W=$win marker($level_x_trace)=10, mode($level_x_trace)=4, rgb($level_x_trace)=(c.red, c.green, c.blue)
endfor

SetWindow $win tooltipHook(hook) = BSP_EpochGraphToolTip
SetWindow $win, tooltipHook(hook) = BSP_EpochGraphToolTip

SetAxis/W=$win/A
endfor
Expand Down Expand Up @@ -1840,7 +1840,7 @@ Function BSP_SFHelpWindowHook(s)
contentCRC = GetNotebookCRC(sfWin)
if(!CmpStr(sfWin, s.winName) && refContentCRC != contentCRC)
BSP_SFFormulaColoring(sfWin)
SetWindow $mainWin userData($BSP_USER_DATA_SF_CONTENT_CRC)=num2istr(contentCRC)
SetWindow $mainWin, userData($BSP_USER_DATA_SF_CONTENT_CRC)=num2istr(contentCRC)
endif
break
endswitch
Expand Down
2 changes: 1 addition & 1 deletion Packages/MIES/MIES_CheckInstallation.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Function CHI_CheckInstallation()
printf "Windows 10: %s\r", ToTrueFalse(IsWindows10())
if(IsWindows10() && archBits == 64)
aslrEnabled = GetASLREnabledState()
printf "ASLR: %s (%s)\r" ToTrueFalse(aslrEnabled), SelectString(aslrEnabled, "Nice!", "Very Bad")
printf "ASLR: %s (%s)\r", ToTrueFalse(aslrEnabled), SelectString(aslrEnabled, "Nice!", "Very Bad")
if(aslrEnabled != 0)
state.numErrors += 1
endif
Expand Down
Loading

0 comments on commit 82967e0

Please sign in to comment.