Mercurial > dwindows
comparison gtk/dw.c @ 162:df59a3fc6de6
Fixed a minor bug in dw_module_close().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 17 Nov 2002 12:29:43 +0000 |
parents | a07dd2e819f3 |
children | 0322836c5299 |
comparison
equal
deleted
inserted
replaced
161:c555d06b6c93 | 162:df59a3fc6de6 |
---|---|
5040 * Parameters: | 5040 * Parameters: |
5041 * handle: Module handle returned by dw_module_load() | 5041 * handle: Module handle returned by dw_module_load() |
5042 */ | 5042 */ |
5043 int dw_module_close(HMOD handle) | 5043 int dw_module_close(HMOD handle) |
5044 { | 5044 { |
5045 return dlclose(handle); | 5045 if(handle) |
5046 return dlclose(handle); | |
5047 return 0; | |
5046 } | 5048 } |
5047 | 5049 |
5048 /* | 5050 /* |
5049 * Returns the handle to an unnamed mutex semaphore. | 5051 * Returns the handle to an unnamed mutex semaphore. |
5050 */ | 5052 */ |