[PATCH] advapi32: add more checks in CRYPT_CreateMachineGuid.

Dmitry Timoshkov dmitry at codeweavers.com
Fri Apr 25 00:42:37 CDT 2008

"Lei Zhang" <thestig at google.com> wrote:

> I'm getting a crash in CRYPT_CreateMachineGuid() with native
> rpcrt4.dll. This adds some checks to work around it.

I assume that "native" == "win9x" in this case.

>      pRpcStringFree = GetProcAddress(lib, "RpcStringFreeW");
> +    if (!pUuidCreate || !pUuidToString || !pRpcStringFree) goto CreateMachineGuidCleaup;

It would be better to use A versions of APIs then instead of failing,


More information about the wine-devel mailing list