Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 210287f

Browse files
authored
Revert "[path_provider_windows] Resolve FFI stabilization changes (#3485)"
This reverts commit 04b0b4b.
1 parent 04b0b4b commit 210287f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/path_provider/path_provider_windows/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## 0.1.0-nullsafety.1
2-
3-
* Bump win32 dependency to latest version.
4-
51
## 0.1.0-nullsafety
62

73
* Migrate to null safety

packages/path_provider/path_provider_windows/lib/src/path_provider_windows_real.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class PathProviderWindows extends PathProviderPlatform {
116116
/// [WindowsKnownFolder].
117117
Future<String> getPath(String folderID) {
118118
final pathPtrPtr = allocate<Pointer<Utf16>>();
119-
final Pointer<GUID> knownFolderID = calloc<GUID>()..ref.setGUID(folderID);
119+
final Pointer<GUID> knownFolderID = calloc<GUID>()..setGUID(folderID);
120120

121121
try {
122122
final hr = SHGetKnownFolderPath(

packages/path_provider/path_provider_windows/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: path_provider_windows
22
description: Windows implementation of the path_provider plugin
33
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_windows
4-
version: 0.1.0-nullsafety.1
4+
version: 0.1.0-nullsafety
55

66
flutter:
77
plugin:
@@ -17,7 +17,7 @@ dependencies:
1717
flutter:
1818
sdk: flutter
1919
ffi: ^0.2.0-nullsafety.1
20-
win32: ^2.0.0-nullsafety.9
20+
win32: ^2.0.0-nullsafety.8
2121

2222
dev_dependencies:
2323
flutter_test:

0 commit comments

Comments
 (0)