summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordougt%meer.net <devnull@localhost>2006-06-08 14:51:41 +0000
committerdougt%meer.net <devnull@localhost>2006-06-08 14:51:41 +0000
commitbf7bf28a69cdc3597f5e50ce5b599e1f178c9166 (patch)
tree384dc112fde1fce8ad88934d819df021490e2012
parentc2550f11cd42391e445460816e04914a748de6d6 (diff)
downloadnspr-hg-NSPRPUB_WINCE_04122006_BRANCH.tar.gz
Fixes load library failure due to comparison with HINSTANCE_ERROR. LoadLibraryNSPRPUB_WINCE_04122006_BRANCH
on failure will return NULL. Patch by zhaosw@cn.ibm.com & mxlee@nlsde.buaa.edu.cn.
-rw-r--r--pr/src/linking/prlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c
index 51bff2b8..990f4f83 100644
--- a/pr/src/linking/prlink.c
+++ b/pr/src/linking/prlink.c
@@ -896,7 +896,7 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags)
#else
h = LoadLibrary(name);
#endif
- if (h < (HINSTANCE)HINSTANCE_ERROR) {
+ if (!h) {
oserr = _MD_ERRNO();
PR_DELETE(lm);
goto unlock;