iSelectedImage is allowed to be 0.
[wine] / dlls / advapi32 / crypt_lmhash.c
2004-10-04  Hans LeidekkerImplement SystemFunction006().