mIRC Home    About    Download    Register    News    Help

Print Thread
#246222 28/05/14 09:17 PM
Joined: Jan 2004
Posts: 1,359
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,359
DLL source: http://www.xise.nl/mirc/sha2.zip

Relevant lines are 66-68 in hash.c:

Code:
wsprintf(data, TEXT("$bvar(%s,%u,%u)"), name, index, MAX_BVAR_BYTES);

if (!(res = mirc_query(hwnd))) break;

...

BOOL mirc_query(HWND hwnd)
{
  // tell mIRC to evaluate the command in the buffer
  return SendMessage(hwnd, WM_MEVALUATE, UNICODE_FLAG, num);
}

Here data is a LPTSTR to the mapped file, mirc_query is a wrapper for SendMessage.

This will work correctly in 7.32 but not 7.33
Code:
alias sha512 return $dll(scripts\sha2.dll,sha512,$calc($2) $1)

...

//bset -t &test 1 test | echo -ag $sha512(&test,1)


In my testing I also tried to use WM_MCOMMAND to /set %test 1 and that did not seem to work either although I do not have code to provide for that.

Trying the new cMethod with or without adding 16 SendMessage returns 0 in both cases.

Windows 8 x64
mIRC 7.33 beta

Joined: Jul 2006
Posts: 4,156
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,156
Confirmed, mslDev is also unable to sync the change with mIRC because of it, most likely related to the item #35 in the new beta


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 5,434
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,434
Thanks, I was able to reproduce this. This issue has been fixed for the next version.


Link Copied to Clipboard