Skip to content

Commit

Permalink
Adding missing return to break the recursion.
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Feb 15, 2021
1 parent feef73c commit 5da17c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/System-OSEnvironments/Win32Environment.class.st
Expand Up @@ -72,7 +72,7 @@ Win32Environment >> doGetEnvVariable: aVariableName bufferSize: aSize ifAbsent:
ifTrue: [
self error: 'Error ', lastErrCode printString,
' occurred while fetching environment variable ', aVariableName asString ]
ifFalse: [ self doGetEnvVariable: aVariableName bufferSize: aSize ifAbsent: aBlock isRetry: true ] ].
ifFalse: [ ^ self doGetEnvVariable: aVariableName bufferSize: aSize ifAbsent: aBlock isRetry: true ] ].

"From MSDN: If lpBuffer is not large enough to hold the data, the return value is the buffer size, in characters,
required to hold the string and its terminating null character and the contents of lpBuffer are undefined."
Expand Down

0 comments on commit 5da17c9

Please sign in to comment.