ReactOS 0.4.15-dev-8093-g3285f69
chdrive.c File Reference
#include <precomp.h>
Include dependency graph for chdrive.c:

Go to the source code of this file.

Functions

int _chdrive (int newdrive)
 

Function Documentation

◆ _chdrive()

int _chdrive ( int  newdrive)

Definition at line 30 of file chdrive.c.

31{
32 WCHAR buffer[] = L"A:";
33
34 buffer[0] += newdrive - 1;
36 {
38 if (newdrive <= 0)
39 {
41 }
42 return -1;
43 }
44 return 0;
45}
#define EACCES
Definition: acclib.h:85
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
Definition: path.c:2249
GLuint buffer
Definition: glext.h:5915
#define L(x)
Definition: ntvdm.h:50
void _dosmaperr(unsigned long oserrcode)
Definition: errno.c:79
errno_t __cdecl _set_errno(_In_ int _Value)
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
__wchar_t WCHAR
Definition: xmlstorage.h:180