changeset 16231 | 68fa0d6c9b66 |
parent 16230 | 5258eebd6b23 |
child 16232 | 7c6304d387e5 |
--- a/Win32FileDialog.st Fri Apr 01 12:47:05 2016 +0200 +++ b/Win32FileDialog.st Fri Apr 01 12:49:46 2016 +0200 @@ -719,7 +719,9 @@ ] ifFalse:[ fileName := nil. error := OperatingSystem commDlgExtendedError. - self error:('GetOpenFile failed with error: %1' bindWith:error). + error ~~ 0 ifTrue:[ + self error:('GetOpenFile failed with error: %1' bindWith:error). + ]. ]. ] ensure:[ openFileNameStructExternalBytes notNil ifTrue:[openFileNameStructExternalBytes free].