Commit Graph

519 Commits

Author SHA1 Message Date
Michael Stefaniuc a87520036f janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
Some HeapFree's are hidden behind macros. Found by smatch.
2006-05-10 11:31:41 +02:00
Robert Reif 1ed98cc7eb advapi32: Add some lsa tests. 2006-05-05 17:38:53 +02:00
Robert Reif b871ac4ff1 advapi32: Fix LsaClose return value. 2006-05-05 17:31:10 +02:00
Robert Shearman 35596ee290 advapi32: Implement the majority of ImpersonateLoggedOnUser. 2006-05-05 16:35:55 +02:00
Robert Reif d2a59d86d9 advapi32: Fix LsaQueryInformationPolicy return values. 2006-04-21 11:28:18 +02:00
Alexandre Julliard e97a1afbab advapi32: Fixed compiler warnings. 2006-03-28 14:43:18 +02:00
Thomas Weidenmueller ae8b835d85 advapi32: Fixed building TRUSTEEs with objects.
Fill the TRUSTEE structure properly in BuildTrusteeWithObjectsAndName
and BuildTrusteeWithObjectsAndSid, including regression tests.
2006-03-28 12:34:43 +02:00
Francois Gouget cf49dc36c7 advapi32: Fix the LsaEnumerateAccountRights() export. 2006-03-21 20:02:35 +01:00
Hans Leidekker 93676b10c6 advapi32: Add stub implementations for a bunch of documented Lsa APIs. 2006-03-13 14:18:29 +01:00
Ulrich Czekalla 7aa3be4741 advapi32: Add partial implementation of LookupAccountNameW. 2006-02-22 11:32:41 +01:00
Michael Jung ac615ce5a0 advapi32: Implemented RegLoadMUIString[AW]. 2006-02-14 10:41:18 +01:00
Aric Stewart 910806393d advapi32: Fix for RegNotifyChangeKeyValue.
Flip fAsync and fWatchSubTree into their proper places.
2006-02-09 12:08:47 +01:00
Ulrich Czekalla 5ceb274724 advapi32: Add stub for ObjectDeleteAuditAlarmW. 2006-02-02 13:19:11 +01:00
Mike McCormack a8b71c2727 advapi32: If we can't connect to a service's pipe, name the service in
the error message.
2006-01-10 12:10:34 +01:00
Vitaliy Margolen e74bda9d95 advapi32: Don't allocate memory for empty argument string and pass
NULL instead.
2006-01-03 12:05:32 +01:00
Rein Klazes 62b69d6486 advapi32: RegCreateKeyEx fix.
On Win9x,ME RegCreateKeyEx ignores the backslash character if the
subkey begins with one. With a regression test.
2005-12-08 13:49:02 +01:00
Ge van Geldorp 1a1583a364 Match PSDK STATUS_* definitions. 2005-11-28 17:32:54 +01:00
Alexandre Julliard 0ec7e1a591 Renamed all .cvsignore files to .gitignore. 2005-11-26 13:10:33 +01:00
Paul Vriens e6b0dc2a2f Return a real error in LsaLookupSids. 2005-11-24 19:22:30 +01:00
Vincent Béron f41abbd07a Add/correct prototypes for some already defined functions in
advapi32. Correct spec file entry for GetSecurityInfoExW.
2005-11-21 12:06:00 +00:00
Rob Shearman 01a4245a51 Don't try waiting for the service process to start if the
CreateProcess call failed.
2005-11-21 12:00:16 +00:00
Markus Amsler ec350525e3 Improve c2man Documented-Total count. Changes:
- add missing description
- add missing returns section
2005-11-12 19:12:03 +00:00
Francois Gouget 0edbaf7e80 Remove spaces before '\n' in traces. 2005-11-10 12:14:56 +00:00
Saulius Krasuckas 5cd099290c Win98 fails another way when user isn't logged in. 2005-11-08 19:57:41 +00:00
Markus Amsler d45811ce2a Improve c2man Documented-Total count. 2005-11-04 11:43:27 +00:00
Saulius Krasuckas 9d519093f6 - RegConnectRegistryA fails on Win9x when Remote Registry Service is
not installed (WinReg.DLL is missing).
- Test "\\" prefixed computer names too.
2005-11-04 11:15:59 +00:00
Mike McCormack febe90b263 Implement advapi32.CommandLineFromMsiDescriptor. It's a wrapper for
msi.MsiProvideComponentFromDescriptor.
2005-11-04 11:15:18 +00:00
Hans Leidekker d7161472fc Added stub for RegisterServiceCtrlHandlerEx{A,W}. 2005-11-03 09:53:27 +00:00
Ivan Leo Puoti 7230a90821 Delete a temp file. 2005-10-27 18:29:07 +00:00
Alexandre Julliard 7e22be4d84 We are no longer generating .dbg.c files. 2005-09-29 10:35:58 +00:00
Vincent Béron bd6f176df9 Remove some Unicode->ANSI cross-calls in crypt functions. 2005-09-28 11:59:04 +00:00
Robert Shearman c218e74184 Fix String SID parsing. 2005-09-16 18:44:17 +00:00
Rein Klazes c16e70587a - Set the LastError in OpenSCManager in case of errors;
- Accept machine names without a '\\' prefix in OpenSCManager and
  RegConnectRegistry.
- Add a regression test for that.
2005-09-15 09:31:05 +00:00
Alexandre Julliard 261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Mike McCormack 280bcf6e4a Fix gcc 4.0 warnings. 2005-08-27 10:00:38 +00:00
Kevin Koltzau bfa3077510 Properly declare handles. 2005-08-23 09:32:39 +00:00
Kevin Koltzau 73159c1d0c Remove 'cast from pointer to integer of different size' warnings in
64bit,
2005-08-22 09:18:48 +00:00
Vincent Béron e9cac26182 Change some TRACEing formats to make more sense. 2005-08-15 09:44:34 +00:00
Alexandre Julliard 49b7fdcfc0 Removed the broken mmap64 configure check, and moved the
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
need the define include it.
2005-08-03 21:25:10 +00:00
Alexandre Julliard 7be607f7c0 Added commented out stubs for a bunch of new functions. 2005-08-01 14:59:26 +00:00
Steven Edwards e14569d122 Correct RegCreateKeyEx[A/W] prototype to match the PSDK. 2005-07-28 10:18:23 +00:00
Felix Nawothnig 48533ae97d Implement RegGetValueA/W. 2005-07-18 15:10:22 +00:00
Felix Nawothnig 7bc3a38ba7 Rewrote the RegGetValue tests for REG_SZ / REG_EXPAND_SZ. 2005-07-18 10:30:51 +00:00
Felix Nawothnig 305ce2f641 Fix registry tests on Win95. 2005-07-18 09:08:24 +00:00
Juan Lang 8c9b330cce Add/correct a couple definitions, allow hashing nothing. 2005-07-18 09:07:57 +00:00
Francois Gouget 28dc5a8afc Assorted spelling fixes. 2005-07-11 10:59:41 +00:00
Mike McCormack 257c337c19 gcc 4.0 -Wpointer-sign fixes (Reg* functions). 2005-07-07 12:08:42 +00:00
Mike McCormack d7b9a23afd gcc 4.0 -Wpointer-sign fixes (Reg* functions). 2005-07-06 19:08:05 +00:00
James Hawkins fb46998825 Branch the LSA functions from security.c to lsa.c. 2005-07-06 10:37:50 +00:00
Stefan Huehner 17ed5537e7 Fix some more -Wmissing-declarations warnings. 2005-07-05 11:05:50 +00:00
Felix Nawothnig 694f789956 Added unit tests for RegGetValue. 2005-07-03 11:19:03 +00:00
James Hawkins 9f96664dc4 - Fix calculation of generic pointers.
- Minor cleanups.
2005-06-29 20:14:16 +00:00
Alexandre Julliard ccd5cdad18 Mark as todo a couple of tests that currently fail. 2005-06-28 13:52:01 +00:00
Robert Shearman 1731df4ca0 Test ACCESS_SYSTEM_SECURITY AccessCheck behaviour. 2005-06-27 19:48:35 +00:00
James Hawkins 0ea0f5fffd - Define FSCTL_PIPE_IMPERSONATE.
- Implement ImpersonateNamedPipeClient.
2005-06-24 11:54:15 +00:00
James Hawkins fc6b6f4848 Add stub implementations for BuildSecurityDescriptorA/W. 2005-06-23 11:40:57 +00:00
James Hawkins dd3fd54a65 Forward AddAuditAccessAce to its Rtl counterpart. 2005-06-23 11:03:52 +00:00
Alexandre Julliard aa0b9aac0d Sort entry points alphabetically. 2005-06-22 18:38:23 +00:00
Felix Nawothnig 68ee20e36d Skip ACL tests on Win9x. 2005-06-22 12:00:01 +00:00
James Hawkins bfaac2776a Implement IsTokenRestricted. 2005-06-21 20:49:54 +00:00
James Hawkins bafa13c6a6 Implement GetTrustee* functions. 2005-06-21 20:20:47 +00:00
Stefan Huehner ac6f562b52 Fix more -Wstrict-prototypes warnings. 2005-06-20 14:18:03 +00:00
Robert Shearman 9cb94b276f Implement RtlImpersonateSelf, RevertToSelf and MapGenericMask. 2005-06-20 11:44:45 +00:00
Francois Gouget f9280a3a95 Protect the unistd.h and sys/stat.h includes.
Include config.h.
Fixes warnings reported by winapi_check.
2005-06-17 20:56:02 +00:00
Mike McCormack 5b2d5fd758 Use HANDLE instead of HKEY in the NT API. 2005-06-17 13:58:33 +00:00
James Hawkins 5909b0de35 Forward GetPrivate/KernelObjectSecurity to NtQuerySecurityObject. 2005-06-17 09:52:06 +00:00
Robert Shearman 8cb3f92e53 - All versions of Windows ignore the access rights of the passed in
parent handle to RegCreateKey(Ex).
- Add a test that shows this.
2005-06-16 20:34:34 +00:00
Robert Shearman 9495180325 MSDN states that DuplicateToken should create a new token with the
TOKEN_QUERY | TOKEN_IMPERSONATE rights, not 0.
2005-06-15 10:20:17 +00:00
Mike McCormack 74b37280b3 Silence some -Wmissing-declarations warnings. 2005-06-13 10:00:37 +00:00
Robert Shearman 44246e47ec Fix registry test for Win9x by skipping a section that fails, but
succeeds on NT.
2005-06-12 10:42:13 +00:00
Robert Shearman 472852bef3 Added test for AccessCheck. 2005-06-09 10:03:11 +00:00
Mike McCormack 6b44c2a56c Fix some warnings. 2005-06-09 09:48:36 +00:00
Mike McCormack a46a159be9 Make ADVAPI_IsLocalComputer static and simplify it a little. 2005-06-09 09:44:44 +00:00
Mike McCormack 4fd603607f Include appmgmt.h where its functions are used. 2005-06-09 09:44:26 +00:00
Alexandre Julliard 16885f09a5 Fixed RtlIsTextUnicode prototype, and made it properly take into
account the results of the tests to determine the return value.
2005-05-31 13:24:44 +00:00
Uwe Bonnes 7f99aa834f Implemented SystemFunction036. 2005-05-23 12:08:00 +00:00
Robert Shearman efbea2e2bc Implement RegNotifyChangeKeyValue on top of NtNotifyChangeKey. 2005-05-16 14:08:11 +00:00
Vincent Béron 4440a7278f Provide minimal API documentation in advapi/eventlog.c to silence some
winapi_check output.
Move around functions in riched20, richedit and rpcrt4 to achieve the
same goal.
2005-05-16 08:51:19 +00:00
Aric Stewart ea6ecf44ff Add a stub implementation of RegisterTraceGuids. 2005-05-11 13:00:18 +00:00
Alexandre Julliard 34fa35dc99 Added rules for building import libraries in the individual dll
makefiles, and added support for building a .def.a static import
library too.
2005-05-09 14:42:30 +00:00
Alexandre Julliard d62356aa1e Added rules to build import libraries in the individual dll makefiles.
Generate import libraries with the right name right away instead of
using an intermediate .spec.def file.
2005-05-07 12:39:52 +00:00
Robert Shearman 45d47c422f Fix RegDeleteKey{A,W} to open the specified key with the DELETE access
right.
2005-05-05 16:47:33 +00:00
Stefan Leichter 21be2f734e Excluded tests crashing on NT4 from compiling. 2005-04-23 19:05:03 +00:00
Robert Shearman 1408169387 Implement PrivilegeCheck. 2005-04-22 21:17:42 +00:00
Alexandre Julliard b965457c4a Get rid of the remaining calls to strncpyW, and remove that function
from wine/unicode.h.
2005-04-21 17:18:50 +00:00
Francois Gouget 3ef8c51c8a Tweak the API documentation to silence winapi_check warnings. 2005-04-20 15:18:42 +00:00
James Hawkins 8516d1969d Set the backup/restore privilege. 2005-04-19 12:00:04 +00:00
Troy Rollo 8bf4d76681 Correct test of BOOL return value in ControlService. 2005-04-19 10:24:22 +00:00
James Hawkins fa18fad2b0 Remove two unnecessary traces.
Break up one test into two.
2005-04-19 10:24:06 +00:00
James Hawkins 89f67d7b09 Add RegUnLoadKey test. 2005-04-19 09:47:10 +00:00
Jakob Eriksson 163f5ab923 Fail gracefully on permission denied. 2005-04-18 09:52:40 +00:00
James Hawkins a9d5de8414 RegDeleteKey fails if the lpSubKey param is NULL. 2005-04-16 10:49:10 +00:00
Jakob Eriksson 9117e1c463 ERROR_PRIVILEGE_NOT_HELD can be returned for NT4. 2005-04-15 16:12:28 +00:00
Jakob Eriksson 7fb79e34a0 Win98 can return ERROR_CALL_NOT_IMPLEMENTED. 2005-04-15 16:12:14 +00:00
James Hawkins 2a8f7962ff Pass an empty string instead of NULL to RegDeleteKey to delete hKey. 2005-04-13 14:40:58 +00:00
Steven Edwards 4a26da2142 Partially implement CreateProcessAsUser. 2005-04-13 11:02:59 +00:00
Hans Leidekker 4ead2b4cb7 Implement GetNamedSecurityInfo. 2005-04-11 14:25:41 +00:00
Michael Jung 44cb0906da Make crypt functions more robust in case of incorrect api usage. 2005-04-11 12:55:36 +00:00
James Hawkins eb9250bf12 Create the 'Test' value in a temporary subkey to avoid conflicts
between tests.
2005-04-11 12:52:32 +00:00