# | Line 16 | Line 16 | |
---|---|---|
16 | #include <menes-api/error.hpp> | |
17 | ||
18 | #include <errno.h> | |
19 | + | #include <libsmbclient.h> |
20 | ||
21 | struct MENES_DECLARE ApiTraits : public api::ErrorTraits<int> | |
22 | { | |
# | Line 45 | Line 46 | _finline int CheckError(int status) | |
46 | return status; | |
47 | } | |
48 | ||
49 | + | _finline ::SMBCCTX* CheckError(::SMBCCTX* result) |
50 | + | { |
51 | + | if (result == NULL) |
52 | + | throw Error(); |
53 | + | return result; |
54 | + | } |
55 | + | |
56 | #endif//_Error_hpp_ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |