Mercurial > hg > dmlib
diff minijss/jloadjss.c @ 1198:5d20c80df290
Improve probing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 16:14:40 +0200 |
parents | 0ee6ba7b3e4a |
children | fa758951720f |
line wrap: on
line diff
--- a/minijss/jloadjss.c Thu Mar 05 16:02:02 2015 +0200 +++ b/minijss/jloadjss.c Thu Mar 05 16:14:40 2015 +0200 @@ -329,11 +329,17 @@ if (jssH.idVersion != JSSMOD_VERSION) { + if (probe) + return DMERR_VERSION; + else JSSERROR(DMERR_VERSION, DMERR_VERSION, "Unsupported version of JSSMOD 0x%4x, this version only supports 0x%4x!\n", jssH.idVersion, JSSMOD_VERSION); } + if (probe) + return DMERR_OK; + // Allocate the module module = jssAllocateModule(); if (module == NULL)