ieframe: DdeNameService returns NULL on error.

This commit is contained in:
Huw Davies 2013-08-12 10:32:45 +01:00 committed by Alexandre Julliard
parent 4b24fce4e2
commit 1103a241db
1 changed files with 2 additions and 3 deletions

View File

@ -1008,9 +1008,8 @@ static void init_dde(void)
if(!ddestr_openurl)
WARN("Failed to create string handle: %u\n", DdeGetLastError(dde_inst));
res = HandleToULong(DdeNameService(dde_inst, ddestr_iexplore, 0, DNS_REGISTER));
if(res != DMLERR_NO_ERROR)
WARN("DdeNameService failed: %u\n", res);
if(!DdeNameService(dde_inst, ddestr_iexplore, 0, DNS_REGISTER))
WARN("DdeNameService failed\n");
}
static void release_dde(void)