ERROR: windows-error n string ;
: (win32-error) ( n -- )
- [ dup win32-error-string windows-error ] unless-zero ;
+ [ dup win32-error-string throw-windows-error ] unless-zero ;
: win32-error ( -- )
GetLastError (win32-error) ;
dup ERROR_SUCCESS = [
drop
] [
- dup n>win32-error-string windows-error
+ dup n>win32-error-string throw-windows-error
] if ;
: throw-win32-error ( -- * )