libwinpr-sspi: fix on Linux

This commit is contained in:
Marc-André Moreau 2012-07-26 19:43:51 -04:00
parent 56db379571
commit 66809ba269
3 changed files with 6 additions and 1 deletions

View File

@ -35,6 +35,10 @@
#define ERROR_SUCCESS 0
#endif
#ifndef ERROR_FILE_NOT_FOUND
#define ERROR_FILE_NOT_FOUND 2
#endif
#define DELETE 0x00010000
#define READ_CONTROL 0x00020000
#define WRITE_DAC 0x00040000

View File

@ -228,7 +228,7 @@ LONG RegOpenKeyExA(HKEY hKey, LPCSTR lpSubKey, DWORD ulOptions, REGSAM samDesire
*phkResult = NULL;
return 0;
return ERROR_FILE_NOT_FOUND;
}
LONG RegOpenUserClassesRoot(HANDLE hToken, DWORD dwOptions, REGSAM samDesired, PHKEY phkResult)

View File

@ -28,6 +28,7 @@
#include <winpr/sspi.h>
#include <winpr/print.h>
#include <winpr/sysinfo.h>
#include <winpr/registry.h>
#include "ntlm.h"
#include "../sspi.h"