MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_nhuuid

Function get_nhuuid

sys/windows/windsys.c:534–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void
535get_nhuuid(void)
536{
537 UUID binuuid;
538 unsigned char *stmp;
539 RPC_STATUS rpcstatus;
540
541 if (svn.nhuuid[0])
542 return;
543
544 rpcstatus = UuidCreate(&binuuid);
545 if (rpcstatus == RPC_S_OK) {
546 rpcstatus = UuidToStringA(&binuuid, &stmp);
547 if (rpcstatus == RPC_S_OK) {
548 Snprintf(svn.nhuuid, sizeof svn.nhuuid, "%s", (char *) stmp);
549 RpcStringFree(&stmp);
550 }
551 }
552}
553
554void
555free_nhuuid(void)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected