kernel32: Handle username conversion failure (Coverity).
[wine] / dlls / kernel32 / windebug.c
1 /*
2  * WINDEBUG.DLL
3  *
4  * Copyright (c) 1997 Andreas Mohr
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include <stdarg.h>
22 #include <string.h>
23 #include <stdlib.h>
24 #include "windef.h"
25 #include "wine/debug.h"
26
27 WINE_DEFAULT_DEBUG_CHANNEL(dll);
28
29 /***********************************************************************
30  *           WinNotify       (WINDEBUG.3)
31  *  written without _any_ docu
32  */
33 void WINAPI WinNotify16(CONTEXT86 *context)
34 {
35         FIXME("(AX=%04x):stub.\n", LOWORD(context->Eax));
36         switch (LOWORD(context->Eax))
37         {
38                 case 0x000D:
39                 case 0x000E:
40                 case 0x0060:    /* do nothing */
41                                 break;
42                 case 0x0062:
43                                 break;
44                 case 0x0063:    /* do something complicated */
45                                 break;
46                 case 0x0064:    /* do something complicated */
47                                 break;
48                 case 0x0065:    /* do something complicated */
49                                 break;
50                 case 0x0050:    /* do something complicated, now just return error */
51                                 context->EFlags |= 0x0001;  /* set C flag */
52                                 break;
53                 case 0x0052:    /* do something complicated */
54                                 break;
55                 default:
56                                 break;
57         }
58 }