Török Edvin authored on 2010/08/03 01:37:31
Showing 1 changed files
... ...
@@ -464,7 +464,7 @@ int32_t cli_bcapi_matchicon(struct cli_bc_ctx *ctx , const uint8_t* grp1, int32_
464 464
     if (grp1len > sizeof(group1)-1 ||
465 465
 	grp2len > sizeof(group2)-1)
466 466
 	return -1;
467
-    oldvirname = ctx->ctx->virname;
467
+    oldvirname = ((cli_ctx*)ctx->ctx)->virname;
468 468
     memcpy(group1, grp1, grp1len);
469 469
     memcpy(group2, grp2, grp2len);
470 470
     group1[grp1len] = 0;
... ...
@@ -479,7 +479,7 @@ int32_t cli_bcapi_matchicon(struct cli_bc_ctx *ctx , const uint8_t* grp1, int32_
479 479
     info.nsections = ctx->hooks.pedata->nsections;
480 480
     info.hdr_size = ctx->hooks.pedata->hdr_size;
481 481
     ret = matchicon(ctx->ctx, &info, group1, group2);
482
-    ctx->ctx->virname = oldvirname;
482
+    ((cli_ctx*)ctx->ctx)->virname = oldvirname;
483 483
     return ret;
484 484
 }
485 485