mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
fixed missing constants and build errors
svn path=/trunk/; revision=5200
This commit is contained in:
parent
aa3f68d3f9
commit
38dce58aa9
2 changed files with 21 additions and 10 deletions
|
@ -234,6 +234,17 @@ extern "C" {
|
||||||
#define ERROR_LOCKED 212L
|
#define ERROR_LOCKED 212L
|
||||||
#define ERROR_TOO_MANY_MODULES 214L
|
#define ERROR_TOO_MANY_MODULES 214L
|
||||||
#define ERROR_NESTING_NOT_ALLOWED 215L
|
#define ERROR_NESTING_NOT_ALLOWED 215L
|
||||||
|
#define ERROR_CANNOT_SHRINK 216L
|
||||||
|
#define ERROR_ZOMBIE_PROCESS 217L
|
||||||
|
#define ERROR_STACK_IN_HIGH_MEMORY 218L
|
||||||
|
#define ERROR_INVALID_EXITROUTINE_RING 219L
|
||||||
|
#define ERROR_GETBUF_FAILED 220L
|
||||||
|
#define ERROR_FLUSHBUF_FAILED 221L
|
||||||
|
#define ERROR_TRANSFER_TOO_LONG 222L
|
||||||
|
#define ERROR_FORCENOSWAP_FAILED 223L
|
||||||
|
#define ERROR_SMG_NO_TARGET_WINDOW 224L
|
||||||
|
#define ERROR_NO_CHILDREN 228L
|
||||||
|
#define ERROR_INVALID_SCREEN_GROUP 229L
|
||||||
#define ERROR_BAD_PIPE 230L
|
#define ERROR_BAD_PIPE 230L
|
||||||
#define ERROR_PIPE_BUSY 231L
|
#define ERROR_PIPE_BUSY 231L
|
||||||
#define ERROR_NO_DATA 232L
|
#define ERROR_NO_DATA 232L
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: reg.c,v 1.27 2003/07/21 00:32:23 royce Exp $
|
/* $Id: reg.c,v 1.28 2003/07/21 03:38:42 royce Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -1830,12 +1830,12 @@ RegQueryMultipleValuesW (HKEY hKey,
|
||||||
|
|
||||||
*ldwTotsize = 0;
|
*ldwTotsize = 0;
|
||||||
|
|
||||||
TRACE("(%p,%p,%ld,%p,%p=%ld)\n", hkey, val_list, num_vals, lpValueBuf, ldwTotsize, *ldwTotsize);
|
//TRACE("(%p,%p,%ld,%p,%p=%ld)\n", hKey, val_list, num_vals, lpValueBuf, ldwTotsize, *ldwTotsize);
|
||||||
|
|
||||||
for(i=0; i < num_vals; ++i)
|
for(i=0; i < num_vals; ++i)
|
||||||
{
|
{
|
||||||
val_list[i].ve_valuelen=0;
|
val_list[i].ve_valuelen=0;
|
||||||
status = RegQueryValueExW(hkey, val_list[i].ve_valuename, NULL, NULL, NULL, &val_list[i].ve_valuelen);
|
status = RegQueryValueExW(hKey, val_list[i].ve_valuename, NULL, NULL, NULL, &val_list[i].ve_valuelen);
|
||||||
if(status != ERROR_SUCCESS)
|
if(status != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
return status;
|
return status;
|
||||||
|
@ -1843,7 +1843,7 @@ RegQueryMultipleValuesW (HKEY hKey,
|
||||||
|
|
||||||
if(lpValueBuf != NULL && *ldwTotsize + val_list[i].ve_valuelen <= maxBytes)
|
if(lpValueBuf != NULL && *ldwTotsize + val_list[i].ve_valuelen <= maxBytes)
|
||||||
{
|
{
|
||||||
status = RegQueryValueExW(hkey, val_list[i].ve_valuename, NULL, &val_list[i].ve_type,
|
status = RegQueryValueExW(hKey, val_list[i].ve_valuename, NULL, &val_list[i].ve_type,
|
||||||
bufptr, &val_list[i].ve_valuelen);
|
bufptr, &val_list[i].ve_valuelen);
|
||||||
if(status != ERROR_SUCCESS)
|
if(status != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
@ -2214,10 +2214,10 @@ RegReplaceKeyA (HKEY hKey,
|
||||||
UNICODE_STRING lpOldFileW;
|
UNICODE_STRING lpOldFileW;
|
||||||
LONG ret;
|
LONG ret;
|
||||||
|
|
||||||
RtlCreateUnicodeStringFromAsciiz( &lpSubKeyW, lpSubKey );
|
RtlCreateUnicodeStringFromAsciiz( &lpSubKeyW, (PCSZ)lpSubKey );
|
||||||
RtlCreateUnicodeStringFromAsciiz( &lpOldFileW, lpOldFile );
|
RtlCreateUnicodeStringFromAsciiz( &lpOldFileW, (PCSZ)lpOldFile );
|
||||||
RtlCreateUnicodeStringFromAsciiz( &lpNewFileW, lpNewFile );
|
RtlCreateUnicodeStringFromAsciiz( &lpNewFileW, (PCSZ)lpNewFile );
|
||||||
ret = RegReplaceKeyW( hkey, lpSubKeyW.Buffer, lpNewFileW.Buffer, lpOldFileW.Buffer );
|
ret = RegReplaceKeyW( hKey, lpSubKeyW.Buffer, lpNewFileW.Buffer, lpOldFileW.Buffer );
|
||||||
RtlFreeUnicodeString( &lpOldFileW );
|
RtlFreeUnicodeString( &lpOldFileW );
|
||||||
RtlFreeUnicodeString( &lpNewFileW );
|
RtlFreeUnicodeString( &lpNewFileW );
|
||||||
RtlFreeUnicodeString( &lpSubKeyW );
|
RtlFreeUnicodeString( &lpSubKeyW );
|
||||||
|
@ -2255,8 +2255,8 @@ RegRestoreKeyA (HKEY hKey,
|
||||||
UNICODE_STRING lpFileW;
|
UNICODE_STRING lpFileW;
|
||||||
LONG ret;
|
LONG ret;
|
||||||
|
|
||||||
RtlCreateUnicodeStringFromAsciiz( &lpFileW, lpFile );
|
RtlCreateUnicodeStringFromAsciiz( &lpFileW, (PCSZ)lpFile );
|
||||||
ret = RegRestoreKeyW( hkey, lpFileW.Buffer, dwFlags );
|
ret = RegRestoreKeyW( hKey, lpFileW.Buffer, dwFlags );
|
||||||
RtlFreeUnicodeString( &lpFileW );
|
RtlFreeUnicodeString( &lpFileW );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue