Go to the source code of this file.
◆ ENV_BUFFER_SIZE
◆ cmd_path()
Definition at line 36 of file path.c.
37{
39
41 {
43 return 0;
44 }
45
46
48 {
51
53 if (!pszBuffer)
54 {
55 WARN(
"Cannot allocate memory for pszBuffer!\n");
57 retval = 1;
58 goto Quit;
59 }
60
62 if (dwBuffer == 0)
63 {
66 retval = 0;
67 goto Quit;
68 }
70 {
71 LPTSTR pszOldBuffer = pszBuffer;
73 if (!pszBuffer)
74 {
75 WARN(
"Cannot reallocate memory for pszBuffer!\n");
78 retval = 1;
79 goto Quit;
80 }
82 }
83
86
87 retval = 0;
88 goto Quit;
89 }
90
91
94
95
97 {
98 retval = 1;
99 }
100
101Quit:
103 {
104 if (retval != 0)
106 }
107 else
108 {
110 }
111
112 return retval;
113}
VOID error_out_of_memory(VOID)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define ConOutPrintf(szStr,...)
#define ConErrResPrintf(uID,...)
#define STRING_SET_ENV_ERROR
#define STRING_PATH_HELP1
#define cmd_realloc(ptr, size)
#define GetEnvironmentVariable
#define SetEnvironmentVariable
Referenced by RunShell().